Comparing version 2.1.5 to 2.1.6
24
index.js
@@ -5,3 +5,2 @@ "use strict"; | ||
const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc"); | ||
const path = require("path"); | ||
const vue = require("@vue/language-core"); | ||
@@ -20,24 +19,3 @@ const windowsPathReg = /\\/g; | ||
&& runExtensions.every(ext => allExtensions.includes(ext))) { | ||
let setupedGlobalTypes = false; | ||
try { | ||
let dir = typeof configFilePath === 'string' | ||
? configFilePath | ||
: options.host?.getCurrentDirectory() ?? ts.sys.getCurrentDirectory(); | ||
while (!ts.sys.directoryExists(path.resolve(dir, 'node_modules'))) { | ||
const parentDir = path.resolve(dir, '..'); | ||
if (dir === parentDir) { | ||
throw 0; | ||
} | ||
dir = parentDir; | ||
} | ||
const globalTypesPath = path.resolve(dir, `node_modules/.vue-global-types/${vueOptions.lib}_${vueOptions.target}_${vueOptions.strictTemplates}.d.ts`); | ||
const globalTypesContents = vue.generateGlobalTypes('global', vueOptions.lib, vueOptions.target, vueOptions.strictTemplates); | ||
ts.sys.writeFile(globalTypesPath, globalTypesContents); | ||
setupedGlobalTypes = true; | ||
} | ||
catch { } | ||
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, options.options, { | ||
...vueOptions, | ||
__setupedGlobalTypes: () => setupedGlobalTypes, | ||
}, id => id); | ||
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, options.options, vueOptions, id => id); | ||
return { languagePlugins: [vueLanguagePlugin] }; | ||
@@ -44,0 +22,0 @@ } |
{ | ||
"name": "vue-tsc", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "files": [ | ||
"@volar/typescript": "~2.4.1", | ||
"@vue/language-core": "2.1.5", | ||
"@vue/language-core": "2.1.6", | ||
"semver": "^7.5.4" | ||
@@ -30,3 +30,3 @@ }, | ||
}, | ||
"gitHead": "a95b51ac0b0db8825f77fbba37e29932b5be61e4" | ||
"gitHead": "fd61953ce9eb924eeaf4df0bf8d2237267321194" | ||
} |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
4127
41
+ Added@vue/language-core@2.1.6(transitive)
- Removed@vue/language-core@2.1.5(transitive)
Updated@vue/language-core@2.1.6