vue-tsc 3.1.0-alpha.0 → 3.1.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/index.js +6 -6
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.run = run;
|
|
4
4
|
const runTsc_1 = require("@volar/typescript/lib/quickstart/runTsc");
|
|
5
|
-
const
|
|
5
|
+
const core = require("@vue/language-core");
|
|
6
6
|
const windowsPathReg = /\\/g;
|
|
7
7
|
function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
|
8
8
|
let runExtensions = ['.vue'];
|
|
@@ -10,14 +10,14 @@ function run(tscPath = require.resolve('typescript/lib/tsc')) {
|
|
|
10
10
|
const main = () => (0, runTsc_1.runTsc)(tscPath, runExtensions, (ts, options) => {
|
|
11
11
|
const { configFilePath } = options.options;
|
|
12
12
|
const vueOptions = typeof configFilePath === 'string'
|
|
13
|
-
?
|
|
14
|
-
:
|
|
13
|
+
? core.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions
|
|
14
|
+
: core.createParsedCommandLineByJson(ts, ts.sys, (options.host ?? ts.sys).getCurrentDirectory(), {})
|
|
15
15
|
.vueOptions;
|
|
16
|
-
|
|
17
|
-
const allExtensions =
|
|
16
|
+
vueOptions.globalTypesPath = core.createGlobalTypesWriter(vueOptions, ts.sys.writeFile);
|
|
17
|
+
const allExtensions = core.getAllExtensions(vueOptions);
|
|
18
18
|
if (runExtensions.length === allExtensions.length
|
|
19
19
|
&& runExtensions.every(ext => allExtensions.includes(ext))) {
|
|
20
|
-
const vueLanguagePlugin =
|
|
20
|
+
const vueLanguagePlugin = core.createVueLanguagePlugin(ts, options.options, vueOptions, id => id);
|
|
21
21
|
return { languagePlugins: [vueLanguagePlugin] };
|
|
22
22
|
}
|
|
23
23
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-tsc",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@volar/typescript": "2.4.23",
|
|
24
|
-
"@vue/language-core": "3.1.
|
|
24
|
+
"@vue/language-core": "3.1.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^22.10.4"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3ea27dacce47613f49ae83e96e3aa271ee54746e"
|
|
30
30
|
}
|