Skip to content

Commit 042bfda

Browse files
authored
feat(playground): support show ast in playground (#320)
1 parent 3ea3cd0 commit 042bfda

File tree

7 files changed

+60
-88
lines changed

7 files changed

+60
-88
lines changed

__patches__/typescript-go.patch

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
diff --git a/_packages/api/src/api.ts b/_packages/api/src/api.ts
2-
index fbfc32391..f8487d67c 100644
2+
index fbfc32391..5829a448a 100644
33
--- a/_packages/api/src/api.ts
44
+++ b/_packages/api/src/api.ts
5-
@@ -16,7 +16,7 @@ import type {
5+
@@ -3,8 +3,9 @@ import { SymbolFlags } from "#symbolFlags";
6+
import { TypeFlags } from "#typeFlags";
7+
import type {
8+
Node,
9+
- SourceFile,
10+
+ SourceFile
11+
} from "@typescript/ast";
12+
+import { SyntaxKind } from "@typescript/ast";
13+
import { Client } from "./client.ts";
14+
import type { FileSystem } from "./fs.ts";
15+
import { RemoteSourceFile } from "./node.ts";
16+
@@ -16,7 +17,8 @@ import type {
617
TypeResponse,
718
} from "./proto.ts";
819

920
-export { SymbolFlags, TypeFlags };
1021
+export { SymbolFlags, TypeFlags, RemoteSourceFile, type Node };
22+
+export { SyntaxKind };
1123

1224
export interface APIOptions {
1325
tsserverPath: string;

packages/rslint-api/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"@typescript/api": "workspace:*",
1717
"@rslib/core": "0.12.4",
1818
"@types/node": "24.3.0"
19+
},
20+
"publishConfig": {
21+
"access": "public"
1922
}
2023
}

packages/rslint-wasm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rslint/wasm",
3-
"version": "0.1.11",
3+
"version": "0.1.12",
44
"description": "rslint wasm package",
55
"main": "dist/index.mjs",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)