vue-component-meta 1.8.0 → 1.8.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 CHANGED
@@ -11,13 +11,7 @@ export declare function createComponentMetaCheckerByJsonConfig(root: string, jso
11
11
  getExportNames: (componentPath: string) => string[];
12
12
  getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
13
13
  __internal__: {
14
- tsLs: {
15
- __internal__: {
16
- languageServiceHost: ts.LanguageServiceHost;
17
- languageService: ts.LanguageService;
18
- context: vue.LanguageContext;
19
- };
20
- } & ts.LanguageService;
14
+ tsLs: ts.LanguageService;
21
15
  };
22
16
  };
23
17
  export declare function createComponentMetaChecker(tsconfigPath: string, checkerOptions?: MetaCheckerOptions, ts?: typeof import('typescript/lib/tsserverlibrary')): {
@@ -28,25 +22,13 @@ export declare function createComponentMetaChecker(tsconfigPath: string, checker
28
22
  getExportNames: (componentPath: string) => string[];
29
23
  getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
30
24
  __internal__: {
31
- tsLs: {
32
- __internal__: {
33
- languageServiceHost: ts.LanguageServiceHost;
34
- languageService: ts.LanguageService;
35
- context: vue.LanguageContext;
36
- };
37
- } & ts.LanguageService;
25
+ tsLs: ts.LanguageService;
38
26
  };
39
27
  };
40
28
  export declare function baseCreate(_host: vue.TypeScriptLanguageHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
41
29
  getExportNames: (componentPath: string) => string[];
42
30
  getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
43
31
  __internal__: {
44
- tsLs: {
45
- __internal__: {
46
- languageServiceHost: ts.LanguageServiceHost;
47
- languageService: ts.LanguageService;
48
- context: vue.LanguageContext;
49
- };
50
- } & ts.LanguageService;
32
+ tsLs: ts.LanguageService;
51
33
  };
52
34
  };
package/out/index.js CHANGED
@@ -114,10 +114,12 @@ function baseCreate(_host, vueCompilerOptions, checkerOptions, globalComponentNa
114
114
  });
115
115
  const vueLanguages = ts ? vue.createLanguages(host.getCompilationSettings(), vueCompilerOptions, ts) : [];
116
116
  const core = vue.createLanguageContext(host, vueLanguages);
117
- const tsLs = (0, typescript_1.createLanguageService)(core, ts, ts.sys);
117
+ const tsLsHost = (0, typescript_1.createLanguageServiceHost)(core, ts, ts.sys);
118
+ const tsLs = ts.createLanguageService(tsLsHost);
119
+ (0, typescript_1.decorateLanguageService)(core.virtualFiles, tsLs, false);
118
120
  if (checkerOptions.forceUseTs) {
119
- const getScriptKind = tsLs.__internal__.languageServiceHost.getScriptKind;
120
- tsLs.__internal__.languageServiceHost.getScriptKind = (fileName) => {
121
+ const getScriptKind = tsLsHost.getScriptKind;
122
+ tsLsHost.getScriptKind = (fileName) => {
121
123
  if (fileName.endsWith('.vue.js')) {
122
124
  return ts.ScriptKind.TS;
123
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,10 +13,10 @@
13
13
  "directory": "packages/vue-component-meta"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/typescript": "1.7.6",
17
- "@vue/language-core": "1.8.0",
16
+ "@volar/typescript": "1.7.8",
17
+ "@vue/language-core": "1.8.1",
18
18
  "typesafe-path": "^0.2.2",
19
- "vue-component-type-helpers": "1.8.0"
19
+ "vue-component-type-helpers": "1.8.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
@@ -26,5 +26,5 @@
26
26
  "optional": true
27
27
  }
28
28
  },
29
- "gitHead": "6e2e04ea2f0bfed9ab0fce23ad36abb04916b4f2"
29
+ "gitHead": "3e31c6eb412a9e8145188190472f59c8b43aa9e6"
30
30
  }