vue-component-meta
Advanced tools
Comparing version 2.0.23-alpha.1 to 2.0.24
@@ -28,3 +28,3 @@ import * as vue from '@vue/language-core'; | ||
}; | ||
export declare function baseCreate(ts: typeof import('typescript'), configFileName: string | undefined, projectHost: TypeScriptProjectHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string): { | ||
export declare function baseCreate(ts: typeof import('typescript'), projectHost: TypeScriptProjectHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string): { | ||
getExportNames: (componentPath: string) => string[]; | ||
@@ -31,0 +31,0 @@ getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta; |
@@ -29,9 +29,9 @@ "use strict"; | ||
rootDir = rootDir.replace(windowsPathReg, '/'); | ||
return createCheckerWorker(ts, () => vue.createParsedCommandLineByJson(ts, ts.sys, rootDir, json), checkerOptions, rootDir, path.join(rootDir, 'jsconfig.json.global.vue'), undefined); | ||
return createCheckerWorker(ts, () => vue.createParsedCommandLineByJson(ts, ts.sys, rootDir, json), checkerOptions, rootDir, path.join(rootDir, 'jsconfig.json.global.vue')); | ||
} | ||
function createCheckerBase(ts, tsconfig, checkerOptions = {}) { | ||
tsconfig = tsconfig.replace(windowsPathReg, '/'); | ||
return createCheckerWorker(ts, () => vue.createParsedCommandLine(ts, ts.sys, tsconfig), checkerOptions, path.dirname(tsconfig), tsconfig + '.global.vue', tsconfig); | ||
return createCheckerWorker(ts, () => vue.createParsedCommandLine(ts, ts.sys, tsconfig), checkerOptions, path.dirname(tsconfig), tsconfig + '.global.vue'); | ||
} | ||
function createCheckerWorker(ts, loadParsedCommandLine, checkerOptions, rootPath, globalComponentName, configFileName) { | ||
function createCheckerWorker(ts, loadParsedCommandLine, checkerOptions, rootPath, globalComponentName) { | ||
/** | ||
@@ -61,3 +61,3 @@ * Original Host | ||
return { | ||
...baseCreate(ts, configFileName, projectHost, parsedCommandLine.vueOptions, checkerOptions, globalComponentName), | ||
...baseCreate(ts, projectHost, parsedCommandLine.vueOptions, checkerOptions, globalComponentName), | ||
updateFile(fileName, text) { | ||
@@ -84,3 +84,3 @@ fileName = fileName.replace(windowsPathReg, '/'); | ||
} | ||
function baseCreate(ts, configFileName, projectHost, vueCompilerOptions, checkerOptions, globalComponentName) { | ||
function baseCreate(ts, projectHost, vueCompilerOptions, checkerOptions, globalComponentName) { | ||
const globalComponentSnapshot = ts.ScriptSnapshot.fromString('<script setup lang="ts"></script>'); | ||
@@ -136,13 +136,3 @@ const metaSnapshots = {}; | ||
}); | ||
language.typescript = { | ||
sys: ts.sys, | ||
configFileName, | ||
asFileName: s => s, | ||
asScriptId: s => s, | ||
...(0, typescript_1.createLanguageServiceHost)(ts, ts.sys, language, s => s, projectHost), | ||
}; | ||
language.vue = { | ||
compilerOptions: vueCompilerOptions, | ||
}; | ||
const { languageServiceHost } = language.typescript; | ||
const { languageServiceHost } = (0, typescript_1.createLanguageServiceHost)(ts, ts.sys, language, s => s, projectHost); | ||
const tsLs = ts.createLanguageService(languageServiceHost); | ||
@@ -149,0 +139,0 @@ if (checkerOptions.forceUseTs) { |
{ | ||
"name": "vue-component-meta", | ||
"version": "2.0.23-alpha.1", | ||
"version": "2.0.24", | ||
"license": "MIT", | ||
@@ -15,6 +15,6 @@ "files": [ | ||
"dependencies": { | ||
"@volar/typescript": "~2.4.0-alpha.0", | ||
"@vue/language-core": "2.0.23-alpha.1", | ||
"@volar/typescript": "~2.4.0-alpha.2", | ||
"@vue/language-core": "2.0.24", | ||
"path-browserify": "^1.0.1", | ||
"vue-component-type-helpers": "2.0.23-alpha.1" | ||
"vue-component-type-helpers": "2.0.24" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "70cb34e9d58afd603d50cb5b870116b189f4662b" | ||
"gitHead": "bca79db09e413ef29c17b910271c123a7a68806f" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
43489
905
+ Added@volar/language-core@2.4.11(transitive)
+ Added@volar/source-map@2.4.11(transitive)
+ Added@volar/typescript@2.4.11(transitive)
+ Added@vue/language-core@2.0.24(transitive)
+ Addedvue-component-type-helpers@2.0.24(transitive)
- Removed@volar/language-core@2.4.10(transitive)
- Removed@volar/source-map@2.4.10(transitive)
- Removed@volar/typescript@2.4.10(transitive)
- Removed@vue/language-core@2.0.23-alpha.1(transitive)
- Removedvue-component-type-helpers@2.0.23-alpha.1(transitive)
Updated@vue/language-core@2.0.24