vue-component-meta 1.6.4 → 1.7.0-alpha.0
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/README.md +2 -2
- package/out/index.js +2 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ const componentPath = path.join(__dirname, 'path-to-component');
|
|
|
40
40
|
const meta = checker.getComponentMeta(componentPath);
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
This meta contains really useful stuff like component props, slots, events and more. You can refer to its [type definition](https://github.com/
|
|
43
|
+
This meta contains really useful stuff like component props, slots, events and more. You can refer to its [type definition](https://github.com/vuejs/language-tools/blob/master/packages/vue-component-meta/src/types.ts) for more details.
|
|
44
44
|
|
|
45
45
|
### Extracting prop meta
|
|
46
46
|
|
|
@@ -166,7 +166,7 @@ You need to add `as const` to variable definition:
|
|
|
166
166
|
|
|
167
167
|
## Reference 📚
|
|
168
168
|
|
|
169
|
-
- [tests](https://github.com/
|
|
169
|
+
- [tests](https://github.com/vuejs/language-tools/blob/master/packages/vue-component-meta/tests/index.spec.ts)
|
|
170
170
|
- [Anu's components' API automation](https://github.com/jd-solanki/anu/blob/main/scripts/gen-component-meta.ts)
|
|
171
171
|
- [Discord chat for dynamic usage](https://discord.com/channels/793943652350427136/1027819645677350912)
|
|
172
172
|
|
package/out/index.js
CHANGED
|
@@ -123,8 +123,8 @@ function baseCreate(_host, checkerOptions, globalComponentName, ts) {
|
|
|
123
123
|
},
|
|
124
124
|
});
|
|
125
125
|
const vueCompilerOptions = vue.resolveVueCompilerOptions(host.getVueCompilationSettings());
|
|
126
|
-
const
|
|
127
|
-
const core = (0, language_core_1.createLanguageContext)(
|
|
126
|
+
const vueLanguages = ts ? vue.createLanguages(ts, host.getCompilationSettings(), vueCompilerOptions) : [];
|
|
127
|
+
const core = (0, language_core_1.createLanguageContext)({ typescript: ts }, host, vueLanguages);
|
|
128
128
|
const proxyApis = checkerOptions.forceUseTs ? {
|
|
129
129
|
getScriptKind: (fileName) => {
|
|
130
130
|
if (fileName.endsWith('.vue.js')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-component-meta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0-alpha.0",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"directory": "packages/vue-component-meta"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@volar/language-core": "1.
|
|
17
|
-
"@volar/vue-language-core": "1.
|
|
16
|
+
"@volar/language-core": "1.5.1",
|
|
17
|
+
"@volar/vue-language-core": "1.7.0-alpha.0",
|
|
18
18
|
"typesafe-path": "^0.2.2",
|
|
19
|
-
"vue-component-type-helpers": "1.
|
|
19
|
+
"vue-component-type-helpers": "1.7.0-alpha.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"typescript": "*"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "03642106a0961897a059fde66ed626e2266d5979"
|
|
25
25
|
}
|