vue-component-meta 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/index.d.ts +1 -1
- package/out/index.js +2 -4
- package/package.json +11 -5
package/out/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare function createComponentMetaChecker(tsconfigPath: string, checker
|
|
|
25
25
|
tsLs: ts.LanguageService;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export declare function baseCreate(_host: vue.
|
|
28
|
+
export declare function baseCreate(_host: vue.LanguageServiceHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
|
|
29
29
|
getExportNames: (componentPath: string) => string[];
|
|
30
30
|
getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
|
|
31
31
|
__internal__: {
|
package/out/index.js
CHANGED
|
@@ -55,10 +55,9 @@ function createComponentMetaCheckerWorker(loadParsedCommandLine, checkerOptions,
|
|
|
55
55
|
}
|
|
56
56
|
return scriptSnapshots.get(fileName);
|
|
57
57
|
},
|
|
58
|
-
getVueCompilationSettings: () => parsedCommandLine.vueOptions,
|
|
59
58
|
};
|
|
60
59
|
return {
|
|
61
|
-
...baseCreate(_host, checkerOptions, globalComponentName, ts),
|
|
60
|
+
...baseCreate(_host, parsedCommandLine.vueOptions, checkerOptions, globalComponentName, ts),
|
|
62
61
|
updateFile(fileName, text) {
|
|
63
62
|
fileName = fileName.replace(/\\/g, '/');
|
|
64
63
|
scriptSnapshots.set(fileName, ts.ScriptSnapshot.fromString(text));
|
|
@@ -82,7 +81,7 @@ function createComponentMetaCheckerWorker(loadParsedCommandLine, checkerOptions,
|
|
|
82
81
|
},
|
|
83
82
|
};
|
|
84
83
|
}
|
|
85
|
-
function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
84
|
+
function baseCreate(_host, vueCompilerOptions, checkerOptions, globalComponentName, ts) {
|
|
86
85
|
const globalComponentSnapshot = ts.ScriptSnapshot.fromString('<script setup lang="ts"></script>');
|
|
87
86
|
const metaSnapshots = {};
|
|
88
87
|
const host = new Proxy({
|
|
@@ -117,7 +116,6 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
117
116
|
return _host[prop];
|
|
118
117
|
},
|
|
119
118
|
});
|
|
120
|
-
const vueCompilerOptions = host.getVueCompilationSettings() ?? vue.resolveVueCompilerOptions({});
|
|
121
119
|
const vueLanguages = ts ? vue.createLanguages(host.getCompilationSettings(), vueCompilerOptions, ts) : [];
|
|
122
120
|
const core = (0, language_core_1.createLanguageContext)({ typescript: ts }, host, vueLanguages);
|
|
123
121
|
const proxyApis = checkerOptions.forceUseTs ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,12 +13,18 @@
|
|
|
13
13
|
"directory": "packages/vue-component-meta"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.
|
|
17
|
-
"@vue/language-core": "1.7.
|
|
16
|
+
"@volar/language-core": "1.6.1",
|
|
17
|
+
"@vue/language-core": "1.7.1",
|
|
18
18
|
"typesafe-path": "^0.2.2",
|
|
19
|
-
"vue-component-type-helpers": "1.7.
|
|
19
|
+
"vue-component-type-helpers": "1.7.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"typescript": "*"
|
|
23
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"peerDependenciesMeta": {
|
|
25
|
+
"typescript": {
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"gitHead": "8555895e2018cb871cceb19f0ff073fcf322d8e5"
|
|
24
30
|
}
|