Skip to content

Commit

Permalink
feat: support vue-tsc v2.1 (#136)
Browse files Browse the repository at this point in the history
Had to bump `vue-tsc`'s peer dependency range to `^2.1` because it had a breaking change in its API.
  • Loading branch information
glamseam authored Sep 20, 2024
1 parent 4678129 commit 3fb452e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/get-language-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ function getVueDecoratedProxyLanguageService(langaugeServiceHost, languageServic

const vueLanguagePlugin = createVueLanguagePlugin(
ts,
(s) => s,
() => '',
() => false,
langaugeServiceHost.getCompilationSettings(),
tsconfig ? createParsedCommandLine(ts, ts.sys, tsconfig).vueOptions : resolveVueCompilerOptions({}),
(s) => s,
);

const language = createLanguage([vueLanguagePlugin], new FileMap(ts.sys.useCaseSensitiveFileNames), () => {});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"peerDependencies": {
"prettier": ">=2.0",
"typescript": ">=2.9",
"vue-tsc": "^2.0.24"
"vue-tsc": "^2.1.0"
},
"peerDependenciesMeta": {
"vue-tsc": {
Expand All @@ -36,11 +36,11 @@
},
"devDependencies": {
"@types/node": "20.14.9",
"@vue/language-plugin-pug": "2.0.24",
"@vue/language-plugin-pug": "2.1.6",
"ava": "6.1.3",
"prettier": "3.3.2",
"typescript": "5.5.2",
"vue-tsc": "2.0.24"
"vue-tsc": "^2.1.6"
},
"prettier": {
"printWidth": 120,
Expand Down

0 comments on commit 3fb452e

Please sign in to comment.