@flint.fyi/vue-language 0.2.0 → 0.4.0
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/dist/index.d.mts +3 -4
- package/dist/index.mjs +1 -1
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RootNode } from "@vue/compiler-dom";
|
|
2
2
|
import { VueVirtualCode, tsCodegen } from "@vue/language-core";
|
|
3
|
+
import { VolarLanguage } from "@flint.fyi/volar-language";
|
|
3
4
|
import { Mapper } from "@volar/language-core";
|
|
4
|
-
|
|
5
5
|
//#region src/language.d.ts
|
|
6
6
|
interface VueServices {
|
|
7
7
|
vue: {
|
|
@@ -12,6 +12,5 @@ interface VueServices {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
type VueCodegen = typeof tsCodegen extends WeakMap<WeakKey, infer V> ? V : never;
|
|
15
|
-
declare const vueLanguage:
|
|
16
|
-
//#endregion
|
|
17
|
-
export { vueLanguage };
|
|
15
|
+
export declare const vueLanguage: VolarLanguage<VueServices>;
|
|
16
|
+
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -71,7 +71,7 @@ const vueLanguage = createVolarBasedLanguage((ts, options) => {
|
|
|
71
71
|
const sourceText = sourceScript.snapshot.getText(0, sourceScript.snapshot.getLength());
|
|
72
72
|
const virtualCode = sourceScript.generated.root;
|
|
73
73
|
assert(virtualCode instanceof VueVirtualCode, "Expected sourceScript.generated.root to be VueServiceCode");
|
|
74
|
-
const codegen = nullThrows(tsCodegen.get(virtualCode.
|
|
74
|
+
const codegen = nullThrows(tsCodegen.get(virtualCode.ir), `tsCodegen for ${data.filePathAbsolute} is undefined`);
|
|
75
75
|
const map = volarLanguage.maps.get(serviceScript.code, sourceScript);
|
|
76
76
|
const sfcAst = parse(sourceText, {
|
|
77
77
|
comments: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flint.fyi/vue-language",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "[Experimental] Vue.js language for Flint.",
|
|
5
5
|
"homepage": "https://flint.fyi",
|
|
6
6
|
"repository": {
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"dist/"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@flint.fyi/ts-patch": "^0.17.0",
|
|
26
|
+
"@flint.fyi/typescript-language": "^0.21.0",
|
|
27
|
+
"@flint.fyi/utils": "^0.16.0",
|
|
28
|
+
"@flint.fyi/volar-language": "^0.4.0",
|
|
25
29
|
"@volar/language-core": "2.4.28",
|
|
26
30
|
"@vue/compiler-dom": "^3.5.0",
|
|
27
|
-
"@vue/language-core": "3.
|
|
28
|
-
"typescript": "^
|
|
29
|
-
"@flint.fyi/ts-patch": "^0.15.0",
|
|
30
|
-
"@flint.fyi/utils": "^0.15.0",
|
|
31
|
-
"@flint.fyi/volar-language": "^0.2.0",
|
|
32
|
-
"@flint.fyi/typescript-language": "^0.19.0"
|
|
31
|
+
"@vue/language-core": "3.3.11",
|
|
32
|
+
"typescript": "^6.0.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"@flint.fyi/build": "^0.1.0",
|
|
36
|
+
"@flint.fyi/core": "^0.27.0",
|
|
37
|
+
"tsdown": "0.23.0",
|
|
38
|
+
"vitest": "5.0.1"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": ">=
|
|
41
|
+
"node": ">=26.1.0"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|