vue-component-meta
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -22,3 +22,3 @@ "use strict"; | ||
const vue = require("@vue/language-core"); | ||
const path = require("path-browserify"); | ||
const path_browserify_1 = require("path-browserify"); | ||
const vue_component_type_helpers_1 = require("vue-component-type-helpers"); | ||
@@ -30,7 +30,7 @@ const vue2_1 = require("vue-component-type-helpers/vue2"); | ||
rootDir = rootDir.replace(windowsPathReg, '/'); | ||
return baseCreate(ts, () => vue.createParsedCommandLineByJson(ts, ts.sys, rootDir, json), checkerOptions, rootDir, path.join(rootDir, 'jsconfig.json.global.vue')); | ||
return baseCreate(ts, () => vue.createParsedCommandLineByJson(ts, ts.sys, rootDir, json, undefined, true), checkerOptions, rootDir, path_browserify_1.posix.join(rootDir, 'jsconfig.json.global.vue')); | ||
} | ||
function createCheckerBase(ts, tsconfig, checkerOptions = {}) { | ||
tsconfig = tsconfig.replace(windowsPathReg, '/'); | ||
return baseCreate(ts, () => vue.createParsedCommandLine(ts, ts.sys, tsconfig), checkerOptions, path.dirname(tsconfig), tsconfig + '.global.vue'); | ||
return baseCreate(ts, () => vue.createParsedCommandLine(ts, ts.sys, tsconfig, true), checkerOptions, path_browserify_1.posix.dirname(tsconfig), tsconfig + '.global.vue'); | ||
} | ||
@@ -61,6 +61,3 @@ function baseCreate(ts, getCommandLine, checkerOptions, rootPath, globalComponentName) { | ||
}; | ||
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, projectHost.getCompilationSettings(), { | ||
...commandLine.vueOptions, | ||
__setupedGlobalTypes: () => true, | ||
}, id => id); | ||
const vueLanguagePlugin = vue.createVueLanguagePlugin(ts, projectHost.getCompilationSettings(), commandLine.vueOptions, id => id); | ||
const language = vue.createLanguage([ | ||
@@ -109,3 +106,3 @@ vueLanguagePlugin, | ||
const globalTypesName = `${commandLine.vueOptions.lib}_${commandLine.vueOptions.target}_${commandLine.vueOptions.strictTemplates}.d.ts`; | ||
const globalTypesContents = vue.generateGlobalTypes('global', commandLine.vueOptions.lib, commandLine.vueOptions.target, commandLine.vueOptions.strictTemplates); | ||
const globalTypesContents = `// @ts-nocheck\nexport {};\n` + vue.generateGlobalTypes(commandLine.vueOptions.lib, commandLine.vueOptions.target, commandLine.vueOptions.strictTemplates); | ||
const globalTypesSnapshot = { | ||
@@ -112,0 +109,0 @@ getText: (start, end) => globalTypesContents.substring(start, end), |
{ | ||
"name": "vue-component-meta", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"license": "MIT", | ||
@@ -16,5 +16,5 @@ "files": [ | ||
"@volar/typescript": "~2.4.1", | ||
"@vue/language-core": "2.1.5", | ||
"@vue/language-core": "2.1.6", | ||
"path-browserify": "^1.0.1", | ||
"vue-component-type-helpers": "2.1.5" | ||
"vue-component-type-helpers": "2.1.6" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"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
43861
0
904
+ Added@vue/language-core@2.1.6(transitive)
+ Addedvue-component-type-helpers@2.1.6(transitive)
- Removed@vue/language-core@2.1.5(transitive)
- Removedvue-component-type-helpers@2.1.5(transitive)
Updated@vue/language-core@2.1.6