Skip to content

Commit

Permalink
chore(vscode): switch to "module": "CommonJS" (#4944)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnson Chu <johnsoncodehk@gmail.com>
  • Loading branch information
KazariEX and johnsoncodehk authored Oct 26, 2024
1 parent baa1319 commit 994ccd0
Show file tree
Hide file tree
Showing 14 changed files with 677 additions and 721 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
"devDependencies": {
"@types/semver": "^7.5.3",
"@types/vscode": "^1.82.0",
"@volar/vscode": "~2.4.1",
"@volar/vscode": "~2.4.7",
"@vscode/vsce": "latest",
"@vue/language-core": "2.1.6",
"@vue/language-server": "2.1.6",
Expand Down
2 changes: 2 additions & 0 deletions extensions/vscode/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"compilerOptions": {
"outDir": "out",
"rootDir": "src",
"module": "CommonJS",
"moduleResolution": "Node"
},
"include": [ "src" ],
"references": [
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@lerna-lite/publish": "latest",
"@tsslint/cli": "latest",
"@tsslint/config": "latest",
"@volar/language-service": "~2.4.1",
"typescript": "latest",
"vite": "latest",
"vitest": "latest"
Expand Down
2 changes: 1 addition & 1 deletion packages/component-meta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "packages/component-meta"
},
"dependencies": {
"@volar/typescript": "~2.4.1",
"@volar/typescript": "~2.4.7",
"@vue/language-core": "2.1.6",
"path-browserify": "^1.0.1",
"vue-component-type-helpers": "2.1.6"
Expand Down
4 changes: 2 additions & 2 deletions packages/language-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "packages/language-core"
},
"dependencies": {
"@volar/language-core": "~2.4.1",
"@volar/language-core": "~2.4.7",
"@vue/compiler-dom": "^3.5.0",
"@vue/compiler-vue2": "^2.7.16",
"@vue/shared": "^3.5.0",
Expand All @@ -26,7 +26,7 @@
"@types/minimatch": "^5.1.2",
"@types/node": "latest",
"@types/path-browserify": "^1.0.1",
"@volar/typescript": "~2.4.1",
"@volar/typescript": "~2.4.7",
"@vue/compiler-sfc": "^3.5.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/language-plugin-pug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@vue/language-core": "2.1.6"
},
"dependencies": {
"@volar/source-map": "~2.4.1",
"@volar/source-map": "~2.4.7",
"volar-service-pug": "0.0.62"
}
}
6 changes: 3 additions & 3 deletions packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"directory": "packages/language-server"
},
"dependencies": {
"@volar/language-core": "~2.4.1",
"@volar/language-server": "~2.4.1",
"@volar/test-utils": "~2.4.1",
"@volar/language-core": "~2.4.7",
"@volar/language-server": "~2.4.7",
"@volar/test-utils": "~2.4.7",
"@vue/language-core": "2.1.6",
"@vue/language-service": "2.1.6",
"@vue/typescript-plugin": "2.1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/tests/completions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ describe('Completions', async () => {
"kind": "markdown",
"value": "The message to display",
},
"insertTextFormat": 2,
"insertTextFormat": 1,
"kind": 5,
"label": ":msg",
"sortText": ":msg",
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/tests/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let serverHandle: LanguageServerHandle | undefined;

export const testWorkspacePath = path.resolve(__dirname, '../../../test-workspace');

export async function getLanguageServer() {
export async function getLanguageServer(): Promise<LanguageServerHandle> {
if (!serverHandle) {
serverHandle = startLanguageServer(require.resolve('../bin/vue-language-server.js'), testWorkspacePath);
serverHandle.connection.onNotification(PublishDiagnosticsNotification.type, () => { });
Expand Down
8 changes: 4 additions & 4 deletions packages/language-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"update-html-data": "node ./scripts/update-html-data.js"
},
"dependencies": {
"@volar/language-core": "~2.4.1",
"@volar/language-service": "~2.4.1",
"@volar/typescript": "~2.4.1",
"@volar/language-core": "~2.4.7",
"@volar/language-service": "~2.4.7",
"@volar/typescript": "~2.4.7",
"@vue/compiler-dom": "^3.5.0",
"@vue/language-core": "2.1.6",
"@vue/shared": "^3.5.0",
Expand All @@ -41,7 +41,7 @@
"devDependencies": {
"@types/node": "latest",
"@types/path-browserify": "latest",
"@volar/kit": "~2.4.1",
"@volar/kit": "~2.4.7",
"vscode-languageserver-protocol": "^3.17.5"
}
}
2 changes: 1 addition & 1 deletion packages/tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"vue-tsc": "./bin/vue-tsc.js"
},
"dependencies": {
"@volar/typescript": "~2.4.1",
"@volar/typescript": "~2.4.7",
"@vue/language-core": "2.1.6",
"semver": "^7.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"directory": "packages/typescript-plugin"
},
"dependencies": {
"@volar/typescript": "~2.4.1",
"@volar/typescript": "~2.4.7",
"@vue/language-core": "2.1.6",
"@vue/shared": "^3.5.0"
},
Expand Down
Loading

0 comments on commit 994ccd0

Please sign in to comment.