vue-tsc 0.39.5 → 0.40.2
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/bin/vue-tsc.js +6 -3
- package/out/proxy.js +1 -1
- package/package.json +4 -4
package/bin/vue-tsc.js
CHANGED
|
@@ -12,15 +12,18 @@ fs.readFileSync = (...args) => {
|
|
|
12
12
|
// add *.vue files to allow extensions
|
|
13
13
|
tsc = tsc.replace(
|
|
14
14
|
`ts.supportedTSExtensions = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"]];`,
|
|
15
|
-
`ts.supportedTSExtensions = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"], [".vue", ".md", ".html"]];`,
|
|
15
|
+
// `ts.supportedTSExtensions = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"], [".vue", ".md", ".html"]];`,
|
|
16
|
+
`ts.supportedTSExtensions = [[".ts", ".tsx", ".d.ts"], [".cts", ".d.cts"], [".mts", ".d.mts"], [".vue"]];`,
|
|
16
17
|
);
|
|
17
18
|
tsc = tsc.replace(
|
|
18
19
|
`ts.supportedJSExtensions = [[".js", ".jsx"], [".mjs"], [".cjs"]];`,
|
|
19
|
-
`ts.supportedJSExtensions = [[".js", ".jsx"], [".mjs"], [".cjs"], [".vue", ".md", ".html"]];`,
|
|
20
|
+
// `ts.supportedJSExtensions = [[".js", ".jsx"], [".mjs"], [".cjs"], [".vue", ".md", ".html"]];`,
|
|
21
|
+
`ts.supportedJSExtensions = [[".js", ".jsx"], [".mjs"], [".cjs"], [".vue"]];`,
|
|
20
22
|
);
|
|
21
23
|
tsc = tsc.replace(
|
|
22
24
|
`var allSupportedExtensions = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"]];`,
|
|
23
|
-
`var allSupportedExtensions = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"], [".vue", ".md", ".html"]];`,
|
|
25
|
+
// `var allSupportedExtensions = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"], [".vue", ".md", ".html"]];`,
|
|
26
|
+
`var allSupportedExtensions = [[".ts", ".tsx", ".d.ts", ".js", ".jsx"], [".cts", ".d.cts", ".cjs"], [".mts", ".d.mts", ".mjs"], [".vue"]];`,
|
|
24
27
|
);
|
|
25
28
|
|
|
26
29
|
// proxy createProgram apis
|
package/out/proxy.js
CHANGED
|
@@ -51,7 +51,7 @@ _options, _host, _oldProgram, _configFileParsingDiagnostics) {
|
|
|
51
51
|
function getVueCompilerOptions() {
|
|
52
52
|
const tsConfig = ctx.options.options.configFilePath;
|
|
53
53
|
if (typeof tsConfig === 'string') {
|
|
54
|
-
return vue.
|
|
54
|
+
return vue.createParsedCommandLine(ts, ts.sys, tsConfig).vueOptions;
|
|
55
55
|
}
|
|
56
56
|
return {};
|
|
57
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-tsc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"vue-tsc": "./bin/vue-tsc.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@volar/vue-language-core": "0.
|
|
20
|
-
"@volar/vue-typescript": "0.
|
|
19
|
+
"@volar/vue-language-core": "0.40.2",
|
|
20
|
+
"@volar/vue-typescript": "0.40.2"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"typescript": "*"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "baa87a77b8cb56cf31dab158e5f76af42fe65b39"
|
|
26
26
|
}
|