vue-tsc 1.0.16 → 1.0.18

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/out/index.js +3 -4
  2. package/package.json +4 -4
package/out/index.js CHANGED
@@ -120,13 +120,12 @@ _options, _host, _oldProgram, _configFileParsingDiagnostics) {
120
120
  if (vueCompilerOptions.hooks) {
121
121
  const index = ((_b = (_a = shared_1.state.hook) === null || _a === void 0 ? void 0 : _a.index) !== null && _b !== void 0 ? _b : -1) + 1;
122
122
  if (index < vueCompilerOptions.hooks.length) {
123
- const cbPath = vueCompilerOptions.hooks[index];
124
- const dir = program.__vue.languageServiceHost.getCurrentDirectory();
125
- const cb = require(require.resolve(cbPath, { paths: [dir] }));
123
+ const hookPath = vueCompilerOptions.hooks[index];
124
+ const hook = require(hookPath);
126
125
  shared_1.state.hook = {
127
126
  program,
128
127
  index,
129
- worker: (() => __awaiter(this, void 0, void 0, function* () { return yield cb(program); }))(),
128
+ worker: (() => __awaiter(this, void 0, void 0, function* () { return yield hook(program); }))(),
130
129
  };
131
130
  throw 'hook';
132
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-tsc",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -17,11 +17,11 @@
17
17
  "vue-tsc": "./bin/vue-tsc.js"
18
18
  },
19
19
  "dependencies": {
20
- "@volar/vue-language-core": "1.0.16",
21
- "@volar/vue-typescript": "1.0.16"
20
+ "@volar/vue-language-core": "1.0.18",
21
+ "@volar/vue-typescript": "1.0.18"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "typescript": "*"
25
25
  },
26
- "gitHead": "af476047d8859652254ed36f8aee184f1972a97a"
26
+ "gitHead": "f102ee7bfc96792c63746a5dcb9742e3346d5cc7"
27
27
  }