vue-tsc 0.29.6 → 0.30.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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # vue-tsc
2
2
 
3
- `vue-tsc --noEmit && vite build`
3
+ Install: `npm i vue-tsc -D`
4
+
5
+ Usage: `vue-tsc --noEmit && vite build`
4
6
 
5
7
  Vue 3 command line Type-Checking tool base on IDE plugin [Volar](https://github.com/johnsoncodehk/volar).
6
8
 
package/out/proxy.js CHANGED
@@ -10,12 +10,9 @@ function createProgramProxy(options) {
10
10
  return doThrow('js emit is not support');
11
11
  if (!options.host)
12
12
  return doThrow('!options.host');
13
- if (!options.host.realpath)
14
- return doThrow('!options.host.realpath');
15
13
  if (!options.host.readDirectory)
16
14
  return doThrow('!options.host.readDirectory');
17
15
  const host = options.host;
18
- const realpath = options.host.realpath;
19
16
  const readDirectory = options.host.readDirectory;
20
17
  const parseConfigHost = {
21
18
  useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
@@ -26,7 +23,7 @@ function createProgramProxy(options) {
26
23
  readFile: fileName => host.readFile(fileName),
27
24
  };
28
25
  const fileNames = [
29
- ...options.rootNames.map(rootName => realpath(rootName)),
26
+ ...options.rootNames,
30
27
  ...getVueFileNames(),
31
28
  ];
32
29
  const vueCompilerOptions = getVueCompilerOptions();
@@ -35,7 +32,7 @@ function createProgramProxy(options) {
35
32
  ...host,
36
33
  writeFile: undefined,
37
34
  getCompilationSettings: () => options.options,
38
- getVueCompilationSettings: () => shared.resolveVueCompilerOptions(vueCompilerOptions, host.getCurrentDirectory()),
35
+ getVueCompilationSettings: () => vueCompilerOptions,
39
36
  getScriptFileNames: () => fileNames,
40
37
  getScriptVersion: () => '',
41
38
  getScriptSnapshot,
@@ -56,10 +53,9 @@ function createProgramProxy(options) {
56
53
  return [];
57
54
  }
58
55
  function getVueCompilerOptions() {
59
- var _a, _b;
60
56
  const tsConfig = options.options.configFilePath;
61
57
  if (typeof tsConfig === 'string') {
62
- return (_b = (_a = shared.createParsedCommandLine(ts, ts.sys, tsConfig).raw) === null || _a === void 0 ? void 0 : _a.vueCompilerOptions) !== null && _b !== void 0 ? _b : {};
58
+ return shared.createParsedCommandLine(ts, ts.sys, tsConfig).vueOptions;
63
59
  }
64
60
  return {};
65
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tsc",
3
- "version": "0.29.6",
3
+ "version": "0.30.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "bin",
@@ -15,11 +15,11 @@
15
15
  "vue-tsc": "./bin/vue-tsc.js"
16
16
  },
17
17
  "dependencies": {
18
- "@volar/shared": "0.29.6",
19
- "vscode-vue-languageservice": "0.29.6"
18
+ "@volar/shared": "0.30.1",
19
+ "vscode-vue-languageservice": "0.30.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
23
23
  },
24
- "gitHead": "1c8bec48164d0dd8e6184387c5af23c7bc95e156"
24
+ "gitHead": "dbc7f8ade904de1883bb135b9bc1741c3ce30b76"
25
25
  }