Skip to content

Commit

Permalink
Merge pull request #8 from forcedotcom/phale/fix-module-contents
Browse files Browse the repository at this point in the history
fix: fix pjson
  • Loading branch information
peternhale authored Mar 26, 2024
2 parents 062fe70 + fc26b9f commit 3f0d98b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions messages/hello.md

This file was deleted.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@salesforce/vscode-service-provider",
"version": "0.0.3",
"description": "Library that provides access to Salesforce VSCode Service Provider",
"main": "index.js",
"main": "lib/src/index.js",
"author": "Peter Hale <[email protected]>",
"license": "BSD-3-Clause",
"devDependencies": {
Expand Down Expand Up @@ -34,6 +34,9 @@
"vscode": "^1.1.37",
"vscode-test": "^1.6.1"
},
"files": [
"lib/src"
],
"scripts": {
"test": "jest --coverage",
"build": "shx rm -rf lib && tsc -b",
Expand All @@ -55,5 +58,8 @@
"./{src,test}/**/*.{ts,js}": [
"eslint -c .eslintrc.json --fix"
]
},
"engines": {
"node": ">=18.18.2"
}
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
*/

export { ServiceProvider } from './services';
export { ILogger } from './types';
2 changes: 1 addition & 1 deletion src/services/serviceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class ServiceProvider {
// Call VSCode command to materialize service A
serviceInstance = await vscode.commands.executeCommand<
ServiceReturnType<T>
>('logger.get.instance', ...rest);
>('sf.vscode.core.logger.get.instance', ...rest);
break;
default:
throw new Error(`Unsupported service type: ${type}`);
Expand Down

0 comments on commit 3f0d98b

Please sign in to comment.