vue-tsc 0.34.1 → 0.34.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.
- package/out/apis.js +1 -0
- package/out/proxy.js +7 -3
- package/package.json +3 -3
package/out/apis.js
CHANGED
package/out/proxy.js
CHANGED
|
@@ -19,7 +19,11 @@ _options, _host, _oldProgram, _configFileParsingDiagnostics) {
|
|
|
19
19
|
const vueLsHost = {
|
|
20
20
|
...host,
|
|
21
21
|
resolveModuleNames: undefined,
|
|
22
|
-
writeFile:
|
|
22
|
+
writeFile: (fileName, content) => {
|
|
23
|
+
if (fileName.indexOf('__VLS_') === -1) {
|
|
24
|
+
host.writeFile(fileName, content, false);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
23
27
|
getCompilationSettings: () => options.options,
|
|
24
28
|
getVueCompilationSettings: () => vueCompilerOptions,
|
|
25
29
|
getScriptFileNames: () => {
|
|
@@ -43,14 +47,14 @@ _options, _host, _oldProgram, _configFileParsingDiagnostics) {
|
|
|
43
47
|
vueLsHost: vueLsHost,
|
|
44
48
|
isVueTsc: true,
|
|
45
49
|
});
|
|
46
|
-
tsRuntime.update(
|
|
50
|
+
tsRuntime.update(); // must update before getProgram() to update virtual scripts
|
|
47
51
|
const tsProgram = tsRuntime.getTsLs().getProgram();
|
|
48
52
|
if (!tsProgram)
|
|
49
53
|
throw '!tsProgram';
|
|
50
54
|
const proxyApis = apis.register(ts, tsRuntime);
|
|
51
55
|
const program = new Proxy(tsProgram, {
|
|
52
56
|
get: (target, property) => {
|
|
53
|
-
tsRuntime.update(
|
|
57
|
+
tsRuntime.update();
|
|
54
58
|
return proxyApis[property] || target[property];
|
|
55
59
|
},
|
|
56
60
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-tsc",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"vue-tsc": "./bin/vue-tsc.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@volar/vue-typescript": "0.34.
|
|
19
|
+
"@volar/vue-typescript": "0.34.4"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"typescript": "*"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "ba5106415fb5106b2cd9108186e8278517b592d6"
|
|
25
25
|
}
|