vue-tsc 1.7.0 → 1.7.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/out/index.d.ts +2 -1
- package/out/index.js +5 -3
- package/package.json +5 -4
package/out/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ export type _Program = ts.Program & {
|
|
|
8
8
|
interface ProgramContext {
|
|
9
9
|
projectVersion: number;
|
|
10
10
|
options: ts.CreateProgramOptions;
|
|
11
|
-
languageServiceHost: vue.
|
|
11
|
+
languageServiceHost: vue.LanguageServiceHost;
|
|
12
|
+
vueCompilerOptions: vue.VueCompilerOptions | undefined;
|
|
12
13
|
languageService: ReturnType<typeof vueTs.createLanguageService>;
|
|
13
14
|
}
|
|
14
15
|
export declare function createProgram(options: ts.CreateProgramOptions): _Program;
|
package/out/index.js
CHANGED
|
@@ -26,6 +26,9 @@ function createProgram(options) {
|
|
|
26
26
|
get languageServiceHost() {
|
|
27
27
|
return vueLsHost;
|
|
28
28
|
},
|
|
29
|
+
get vueCompilerOptions() {
|
|
30
|
+
return vueCompilerOptions;
|
|
31
|
+
},
|
|
29
32
|
get languageService() {
|
|
30
33
|
return vueTsLs;
|
|
31
34
|
},
|
|
@@ -42,7 +45,6 @@ function createProgram(options) {
|
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
47
|
getCompilationSettings: () => ctx.options.options,
|
|
45
|
-
getVueCompilationSettings: () => vueCompilerOptions,
|
|
46
48
|
getScriptFileNames: () => {
|
|
47
49
|
return ctx.options.rootNames;
|
|
48
50
|
},
|
|
@@ -61,7 +63,7 @@ function createProgram(options) {
|
|
|
61
63
|
return ctx.options.host[property];
|
|
62
64
|
},
|
|
63
65
|
});
|
|
64
|
-
const vueTsLs = vueTs.createLanguageService(vueLsHost);
|
|
66
|
+
const vueTsLs = vueTs.createLanguageService(vueLsHost, vueCompilerOptions);
|
|
65
67
|
program = vueTsLs.getProgram();
|
|
66
68
|
program.__vue = ctx;
|
|
67
69
|
function getVueCompilerOptions() {
|
|
@@ -105,7 +107,7 @@ function createProgram(options) {
|
|
|
105
107
|
ctx.options = options;
|
|
106
108
|
ctx.projectVersion++;
|
|
107
109
|
}
|
|
108
|
-
const vueCompilerOptions = program.__vue.
|
|
110
|
+
const vueCompilerOptions = program.__vue.vueCompilerOptions;
|
|
109
111
|
if (vueCompilerOptions?.hooks) {
|
|
110
112
|
const index = (shared_1.state.hook?.index ?? -1) + 1;
|
|
111
113
|
if (index < vueCompilerOptions.hooks.length) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-tsc",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
"vue-tsc": "./bin/vue-tsc.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@vue/language-core": "1.7.
|
|
21
|
-
"@vue/typescript": "1.7.
|
|
20
|
+
"@vue/language-core": "1.7.1",
|
|
21
|
+
"@vue/typescript": "1.7.1",
|
|
22
22
|
"semver": "^7.3.8"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"typescript": "*"
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "8555895e2018cb871cceb19f0ff073fcf322d8e5"
|
|
27
28
|
}
|