Skip to content

Commit 017fb5b

Browse files
committed
build(ui): Add tsgo nightly preview
Adds the typescript (tsgo) nightly native preview https://github.com/microsoft/typescript-go We could continue to adopt this and run it as the typechecker in our github actions. Adds a comment in static/AGENTS.md that should point claude code to the right command related tsconfig consolidation #106034
1 parent 5fe2d61 commit 017fb5b

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199
"@testing-library/user-event": "14.6.1",
200200
"@types/gettext-parser": "8.0.0",
201201
"@types/node": "^22.9.1",
202+
"@typescript/native-preview": "7.0.0-dev.20260109.1",
202203
"babel-jest": "30.0.4",
203204
"eslint": "9.34.0",
204205
"eslint-config-prettier": "10.1.8",
@@ -249,6 +250,7 @@
249250
"APIMethod": "stub",
250251
"proxyURL": "http://localhost:8000",
251252
"scripts": {
253+
"typecheck": "tsgo -p tsconfig.json",
252254
"type-coverage": "NODE_OPTIONS='--experimental-transform-types' node scripts/type-coverage.ts -p tsconfig.json",
253255
"test": "NODE_OPTIONS='--experimental-transform-types' node scripts/test.js --watch",
254256
"test-ci": "NODE_OPTIONS='--experimental-transform-types' node scripts/test.js --ci --maxWorkers=75% --colors",

pnpm-lock.yaml

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ pnpm run dev
2424
pnpm run dev-ui
2525
```
2626

27+
### Typechecking
28+
29+
Typecheck the application using the native TypeScript compiler.
30+
DO NOT attempt to typecheck specific files or directories.
31+
32+
```bash
33+
pnpm run typecheck
34+
```
35+
2736
### Linting
2837

2938
```bash

0 commit comments

Comments
 (0)