vue-component-meta 1.7.10 → 1.7.12

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
@@ -37,7 +37,7 @@ export declare function createComponentMetaChecker(tsconfigPath: string, checker
37
37
  } & ts.LanguageService;
38
38
  };
39
39
  };
40
- export declare function baseCreate(_host: vue.TypeScriptLanguageHost, _vueCompilerOptions: Partial<vue.VueCompilerOptions>, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
40
+ export declare function baseCreate(_host: vue.TypeScriptLanguageHost, vueCompilerOptions: vue.VueCompilerOptions, checkerOptions: MetaCheckerOptions, globalComponentName: string, ts: typeof import('typescript/lib/tsserverlibrary')): {
41
41
  getExportNames: (componentPath: string) => string[];
42
42
  getComponentMeta: (componentPath: string, exportName?: string) => ComponentMeta;
43
43
  __internal__: {
package/out/index.js CHANGED
@@ -55,7 +55,7 @@ function createComponentMetaCheckerWorker(loadParsedCommandLine, checkerOptions,
55
55
  },
56
56
  };
57
57
  return {
58
- ...baseCreate(_host, parsedCommandLine.vueOptions, checkerOptions, globalComponentName, ts),
58
+ ...baseCreate(_host, vue.resolveVueCompilerOptions(parsedCommandLine.vueOptions), checkerOptions, globalComponentName, ts),
59
59
  updateFile(fileName, text) {
60
60
  fileName = fileName.replace(/\\/g, '/');
61
61
  scriptSnapshots.set(fileName, ts.ScriptSnapshot.fromString(text));
@@ -77,8 +77,7 @@ function createComponentMetaCheckerWorker(loadParsedCommandLine, checkerOptions,
77
77
  },
78
78
  };
79
79
  }
80
- function baseCreate(_host, _vueCompilerOptions, checkerOptions, globalComponentName, ts) {
81
- const vueCompilerOptions = vue.resolveVueCompilerOptions(_vueCompilerOptions);
80
+ function baseCreate(_host, vueCompilerOptions, checkerOptions, globalComponentName, ts) {
82
81
  const globalComponentSnapshot = ts.ScriptSnapshot.fromString('<script setup lang="ts"></script>');
83
82
  const metaSnapshots = {};
84
83
  const host = new Proxy({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.7.10",
3
+ "version": "1.7.12",
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.3",
17
- "@vue/language-core": "1.7.10",
16
+ "@volar/typescript": "1.7.4",
17
+ "@vue/language-core": "1.7.12",
18
18
  "typesafe-path": "^0.2.2",
19
- "vue-component-type-helpers": "1.7.10"
19
+ "vue-component-type-helpers": "1.7.12"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
@@ -26,5 +26,5 @@
26
26
  "optional": true
27
27
  }
28
28
  },
29
- "gitHead": "e395a70b33b2f09a58211eb55a1869db72c4fc19"
29
+ "gitHead": "9e712c2d603c690cd03502f5ec1a99bd80b800ac"
30
30
  }