vue-tsc 3.1.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.
Files changed (2) hide show
  1. package/index.js +6 -6
  2. 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 vue = require("@vue/language-core");
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
- ? vue.createParsedCommandLine(ts, ts.sys, configFilePath.replace(windowsPathReg, '/')).vueOptions
14
- : vue.createParsedCommandLineByJson(ts, ts.sys, (options.host ?? ts.sys).getCurrentDirectory(), {})
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
- vue.writeGlobalTypes(vueOptions, ts.sys.writeFile);
17
- const allExtensions = vue.getAllExtensions(vueOptions);
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 = vue.createVueLanguagePlugin(ts, options.options, vueOptions, id => id);
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.0",
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.0"
24
+ "@vue/language-core": "3.1.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.10.4"
28
28
  },
29
- "gitHead": "fa32cb67b68c4fd01a146c7e2a276ffa022df268"
29
+ "gitHead": "3ea27dacce47613f49ae83e96e3aa271ee54746e"
30
30
  }