Comparing version 1.7.0 to 1.7.1
@@ -11,3 +11,4 @@ import * as ts from 'typescript'; | ||
options: ts.CreateProgramOptions; | ||
languageServiceHost: vue.VueLanguageServiceHost; | ||
languageServiceHost: vue.LanguageServiceHost; | ||
vueCompilerOptions: vue.VueCompilerOptions | undefined; | ||
languageService: ReturnType<typeof vueTs.createLanguageService>; | ||
@@ -14,0 +15,0 @@ } |
@@ -29,2 +29,5 @@ "use strict"; | ||
}, | ||
get vueCompilerOptions() { | ||
return vueCompilerOptions; | ||
}, | ||
get languageService() { | ||
@@ -46,3 +49,2 @@ return vueTsLs; | ||
getCompilationSettings: () => ctx.options.options, | ||
getVueCompilationSettings: () => vueCompilerOptions, | ||
getScriptFileNames: () => { | ||
@@ -66,3 +68,3 @@ return ctx.options.rootNames; | ||
}); | ||
const vueTsLs = vueTs.createLanguageService(vueLsHost); | ||
const vueTsLs = vueTs.createLanguageService(vueLsHost, vueCompilerOptions); | ||
program = vueTsLs.getProgram(); | ||
@@ -111,3 +113,3 @@ program.__vue = ctx; | ||
} | ||
const vueCompilerOptions = program.__vue.languageServiceHost.getVueCompilationSettings(); | ||
const vueCompilerOptions = program.__vue.vueCompilerOptions; | ||
if (vueCompilerOptions?.hooks) { | ||
@@ -114,0 +116,0 @@ const index = (shared_1.state.hook?.index ?? -1) + 1; |
{ | ||
"name": "vue-tsc", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"main": "out/index.js", | ||
@@ -20,4 +20,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vue/language-core": "1.7.0", | ||
"@vue/typescript": "1.7.0", | ||
"@vue/language-core": "1.7.1", | ||
"@vue/typescript": "1.7.1", | ||
"semver": "^7.3.8" | ||
@@ -27,3 +27,4 @@ }, | ||
"typescript": "*" | ||
} | ||
}, | ||
"gitHead": "8555895e2018cb871cceb19f0ff073fcf322d8e5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10415
211
+ Added@volar/language-core@1.6.1(transitive)
+ Added@volar/source-map@1.6.1(transitive)
+ Added@volar/typescript@1.6.1(transitive)
+ Added@vue/language-core@1.7.1(transitive)
+ Added@vue/typescript@1.7.1(transitive)
+ Addedmuggle-string@0.3.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@volar/language-core@1.5.4(transitive)
- Removed@volar/source-map@1.5.4(transitive)
- Removed@volar/typescript@1.5.4(transitive)
- Removed@vue/compiler-sfc@3.5.12(transitive)
- Removed@vue/compiler-ssr@3.5.12(transitive)
- Removed@vue/language-core@1.7.0(transitive)
- Removed@vue/typescript@1.7.0(transitive)
- Removedmagic-string@0.30.12(transitive)
- Removedmuggle-string@0.2.2(transitive)
- Removednanoid@3.3.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.47(transitive)
Updated@vue/language-core@1.7.1
Updated@vue/typescript@1.7.1