Skip to content

Commit 82ed2d0

Browse files
committed
Upgrade TypeScript from 6 stable to 7 beta
- (faster TS6, up to 10x) - add -D @typescript/native-preview - keep typescript for @typescript-eslint - update scripts to tsgo - update CI to tsgo - (TS7 stable will use typescript and tsc) Resolve: #2005
1 parent 6e39616 commit 82ed2d0

3 files changed

Lines changed: 86 additions & 3 deletions

File tree

β€Ž.github/workflows/main.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
- name: Run @lavamoat/git-safe-dependencies (git-safe-actions)
2626
run: yarn git-safe-actions
2727

28-
- name: Compile with TypeScript
29-
run: yarn tsc
28+
- name: Run TypeScript Go compiler
29+
run: yarn tsgo
3030

3131
- name: Lint with ESLint
3232
run: yarn lint

β€Žpackage.jsonβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint:config": "eslint --print-config index.ts",
3535
"prettier:check": "prettier --check src/**/*.{ts,tsx,json} && prettier --check *.{ts,tsx,json}",
3636
"prettier:write": "prettier --write src/**/*.{ts,tsx,json} && prettier --write *.{ts,tsx,json}",
37-
"check:all": "tsc && yarn lint && yarn prettier:check && jest",
37+
"check:all": "tsgo && yarn lint && yarn prettier:check && jest",
3838
"fix": "yarn lint:fix && yarn prettier:write",
3939
"test": "jest",
4040
"snap": "jest -u",
@@ -102,6 +102,7 @@
102102
"@types/ws": "8.18.1",
103103
"@typescript-eslint/eslint-plugin": "8.50.0",
104104
"@typescript-eslint/parser": "8.50.0",
105+
"@typescript/native-preview": "7.0.0-dev.20260421.2",
105106
"babel-loader": "9.2.1",
106107
"babel-plugin-react-docgen-typescript": "1.5.1",
107108
"babel-plugin-transform-inline-environment-variables": "0.4.4",

β€Žyarn.lockβ€Ž

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6149,6 +6149,87 @@ __metadata:
61496149
languageName: node
61506150
linkType: hard
61516151

6152+
"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260421.2":
6153+
version: 7.0.0-dev.20260421.2
6154+
resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260421.2"
6155+
conditions: os=darwin & cpu=arm64
6156+
languageName: node
6157+
linkType: hard
6158+
6159+
"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260421.2":
6160+
version: 7.0.0-dev.20260421.2
6161+
resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260421.2"
6162+
conditions: os=darwin & cpu=x64
6163+
languageName: node
6164+
linkType: hard
6165+
6166+
"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260421.2":
6167+
version: 7.0.0-dev.20260421.2
6168+
resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260421.2"
6169+
conditions: os=linux & cpu=arm64
6170+
languageName: node
6171+
linkType: hard
6172+
6173+
"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260421.2":
6174+
version: 7.0.0-dev.20260421.2
6175+
resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260421.2"
6176+
conditions: os=linux & cpu=arm
6177+
languageName: node
6178+
linkType: hard
6179+
6180+
"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260421.2":
6181+
version: 7.0.0-dev.20260421.2
6182+
resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260421.2"
6183+
conditions: os=linux & cpu=x64
6184+
languageName: node
6185+
linkType: hard
6186+
6187+
"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260421.2":
6188+
version: 7.0.0-dev.20260421.2
6189+
resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260421.2"
6190+
conditions: os=win32 & cpu=arm64
6191+
languageName: node
6192+
linkType: hard
6193+
6194+
"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260421.2":
6195+
version: 7.0.0-dev.20260421.2
6196+
resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260421.2"
6197+
conditions: os=win32 & cpu=x64
6198+
languageName: node
6199+
linkType: hard
6200+
6201+
"@typescript/native-preview@npm:7.0.0-dev.20260421.2":
6202+
version: 7.0.0-dev.20260421.2
6203+
resolution: "@typescript/native-preview@npm:7.0.0-dev.20260421.2"
6204+
dependencies:
6205+
"@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260421.2"
6206+
"@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260421.2"
6207+
"@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260421.2"
6208+
"@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260421.2"
6209+
"@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260421.2"
6210+
"@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260421.2"
6211+
"@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260421.2"
6212+
dependenciesMeta:
6213+
"@typescript/native-preview-darwin-arm64":
6214+
optional: true
6215+
"@typescript/native-preview-darwin-x64":
6216+
optional: true
6217+
"@typescript/native-preview-linux-arm":
6218+
optional: true
6219+
"@typescript/native-preview-linux-arm64":
6220+
optional: true
6221+
"@typescript/native-preview-linux-x64":
6222+
optional: true
6223+
"@typescript/native-preview-win32-arm64":
6224+
optional: true
6225+
"@typescript/native-preview-win32-x64":
6226+
optional: true
6227+
bin:
6228+
tsgo: bin/tsgo.js
6229+
checksum: 10/3b205eb08ac5a7e7d5c18c277e1595b2cc150975d550403d6a7714c728a7f1c6057a14731c3da291feddbbbeef8e93c81d782d7935a06f1e268261b1c6236bf3
6230+
languageName: node
6231+
linkType: hard
6232+
61526233
"@ungap/structured-clone@npm:^1.2.0":
61536234
version: 1.3.1
61546235
resolution: "@ungap/structured-clone@npm:1.3.1"
@@ -17217,6 +17298,7 @@ __metadata:
1721717298
"@types/ws": "npm:8.18.1"
1721817299
"@typescript-eslint/eslint-plugin": "npm:8.50.0"
1721917300
"@typescript-eslint/parser": "npm:8.50.0"
17301+
"@typescript/native-preview": "npm:7.0.0-dev.20260421.2"
1722017302
babel-loader: "npm:9.2.1"
1722117303
babel-plugin-react-docgen-typescript: "npm:1.5.1"
1722217304
babel-plugin-transform-inline-environment-variables: "npm:0.4.4"

0 commit comments

Comments
Β (0)