vue-tsc 0.34.2 → 0.34.5

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 CHANGED
@@ -87,6 +87,7 @@ function register(ts, context) {
87
87
  newDiagnostic.relatedInformation = transformDiagnostics(relatedInformation);
88
88
  }
89
89
  result.push(newDiagnostic);
90
+ break;
90
91
  }
91
92
  }
92
93
  else if (diagnostic.file === undefined) {
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: undefined,
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(true); // must update before getProgram() to update virtual scripts
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(true);
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.2",
3
+ "version": "0.34.5",
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.2"
19
+ "@volar/vue-typescript": "0.34.5"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
23
23
  },
24
- "gitHead": "468f95dad9421f9c55f0674751ffd7afd45b8777"
24
+ "gitHead": "84a104b9744fb08960ff3bd8bf86a01436be2960"
25
25
  }