vue-tsc 3.0.2 → 3.0.4

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +3 -5
  3. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function run(tscPath?: string): void;
1
+ export declare function run(tscPath?: string): any;
package/index.js CHANGED
@@ -13,9 +13,7 @@ function run(tscPath = require.resolve('typescript/lib/tsc')) {
13
13
  ? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions
14
14
  : vue.createParsedCommandLineByJson(ts, ts.sys, (options.host ?? ts.sys).getCurrentDirectory(), {})
15
15
  .vueOptions;
16
- if (vueOptions.globalTypesPath) {
17
- ts.sys.writeFile(vueOptions.globalTypesPath, vue.generateGlobalTypes(vueOptions));
18
- }
16
+ vue.writeGlobalTypes(vueOptions, ts.sys.writeFile);
19
17
  const allExtensions = vue.getAllExtensions(vueOptions);
20
18
  if (runExtensions.length === allExtensions.length
21
19
  && runExtensions.every(ext => allExtensions.includes(ext))) {
@@ -28,11 +26,11 @@ function run(tscPath = require.resolve('typescript/lib/tsc')) {
28
26
  }
29
27
  });
30
28
  try {
31
- main();
29
+ return main();
32
30
  }
33
31
  catch (err) {
34
32
  if (err === extensionsChangedException) {
35
- main();
33
+ return main();
36
34
  }
37
35
  else {
38
36
  throw err;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tsc",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "bin",
@@ -20,11 +20,11 @@
20
20
  "typescript": ">=5.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@volar/typescript": "2.4.19",
24
- "@vue/language-core": "3.0.2"
23
+ "@volar/typescript": "2.4.20",
24
+ "@vue/language-core": "3.0.4"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.10.4"
28
28
  },
29
- "gitHead": "7343119e9ca4f6a54f63b57f448f15df4b592a9a"
29
+ "gitHead": "148d386f9779c2de64cdcbd35310e03b36943b05"
30
30
  }