vue-tsc 3.0.1 → 3.0.3
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/index.js +5 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -11,7 +11,9 @@ function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
|
|
11
11
|
const { configFilePath } = options.options;
|
|
12
12
|
const vueOptions = typeof configFilePath === 'string'
|
|
13
13
|
? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions
|
|
14
|
-
: vue.
|
|
14
|
+
: vue.createParsedCommandLineByJson(ts, ts.sys, (options.host ?? ts.sys).getCurrentDirectory(), {})
|
|
15
|
+
.vueOptions;
|
|
16
|
+
vue.writeGlobalTypes(vueOptions, ts.sys.writeFile);
|
|
15
17
|
const allExtensions = vue.getAllExtensions(vueOptions);
|
|
16
18
|
if (runExtensions.length === allExtensions.length
|
|
17
19
|
&& runExtensions.every(ext => allExtensions.includes(ext))) {
|
|
@@ -24,11 +26,11 @@ function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
|
|
24
26
|
}
|
|
25
27
|
});
|
|
26
28
|
try {
|
|
27
|
-
main();
|
|
29
|
+
return main();
|
|
28
30
|
}
|
|
29
31
|
catch (err) {
|
|
30
32
|
if (err === extensionsChangedException) {
|
|
31
|
-
main();
|
|
33
|
+
return main();
|
|
32
34
|
}
|
|
33
35
|
else {
|
|
34
36
|
throw err;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-tsc",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
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.
|
|
24
|
-
"@vue/language-core": "3.0.
|
|
23
|
+
"@volar/typescript": "2.4.20",
|
|
24
|
+
"@vue/language-core": "3.0.3"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.10.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "129f30ff8d8d976abf0431063be5c6c4cf88f0fd"
|
|
30
30
|
}
|