chore(deps): drop @typescript/native-preview in favor of typescript 7 native tsc

TypeScript 7's own tsc is the Go-native compiler, so the separate tsgo
binary from the dev-preview package is redundant. yarn type-check now
runs tsc --noEmit. Bump tsconfig target to ES2018 and add types: [node]
to fix the pre-existing NodeJS namespace, global, and /s regex flag
errors that stable tsc reports but tsgo did not.
This commit is contained in:
Tommaso Casaburi
2026-07-09 15:17:35 +07:00
parent 217fccf2d6
commit ece58da78b
6 changed files with 7 additions and 89 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ When CodeGraph MCP tools are available and `.codegraph/` exists, prefer them for
- yarn
- oxlint
- oxfmt
- tsgo
- tsc (TypeScript 7 native compiler)
## Project Structure
+1 -1
View File
@@ -11,7 +11,7 @@ Run before merge/rollout. All must pass.
| `yarn test` | Unit tests (Vitest) | Exit 0 = pass. Fix failing tests before merge. |
| `yarn build` | Production build | Exit 0 = pass. No build errors. |
| `yarn lint` | Lint (oxlint) | Exit 0 = pass. Fix lint errors. |
| `yarn type-check` | TypeScript (tsgo) | Exit 0 = pass. Fix type errors. |
| `yarn type-check` | TypeScript (tsc) | Exit 0 = pass. Fix type errors. |
| `yarn doctor` | React Doctor | Advisory. Prioritize `error` > `warning`. |
**Quick run (all quality gates):**
+1 -2
View File
@@ -102,7 +102,7 @@
"knip": "knip --production --include dependencies,unlisted,binaries --no-progress",
"knip:full": "knip --no-progress --no-exit-code",
"lint": "oxlint src/**/*.{js,ts,tsx}",
"type-check": "tsgo --noEmit",
"type-check": "tsc --noEmit",
"prettier": "oxfmt src/**/*.{js,ts,tsx} electron/**/*.{js,mjs}",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"android:build": "corepack yarn build && corepack yarn cap sync android && corepack yarn cap run android --flavor github",
@@ -148,7 +148,6 @@
"@reforged/maker-appimage": "5.1.1",
"@types/lodash": "4.17.24",
"@types/memoizee": "0.4.9",
"@typescript/native-preview": "^7.0.0-dev.20251226.1",
"@vitejs/plugin-react": "6.0.0",
"@vitest/coverage-istanbul": "4.1.0",
"@xhmikosr/decompress": "11.1.3",
+2 -2
View File
@@ -262,7 +262,7 @@ When CodeGraph MCP tools are available and `.codegraph/` exists, prefer them for
- yarn
- oxlint
- oxfmt
- tsgo
- tsc (TypeScript 7 native compiler)
## Project Structure
@@ -1262,7 +1262,7 @@ Run before merge/rollout. All must pass.
| `yarn test` | Unit tests (Vitest) | Exit 0 = pass. Fix failing tests before merge. |
| `yarn build` | Production build | Exit 0 = pass. No build errors. |
| `yarn lint` | Lint (oxlint) | Exit 0 = pass. Fix lint errors. |
| `yarn type-check` | TypeScript (tsgo) | Exit 0 = pass. Fix type errors. |
| `yarn type-check` | TypeScript (tsc) | Exit 0 = pass. Fix type errors. |
| `yarn doctor` | React Doctor | Advisory. Prioritize `error` > `warning`. |
**Quick run (all quality gates):**
+2 -1
View File
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2015",
"target": "ES2018",
"lib": [
"dom",
"dom.iterable",
@@ -15,6 +15,7 @@
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "bundler",
"types": ["node"],
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
-82
View File
@@ -35,7 +35,6 @@ __metadata:
"@types/node": "npm:20.19.37"
"@types/react": "npm:19.2.16"
"@types/react-dom": "npm:19.2.3"
"@typescript/native-preview": "npm:^7.0.0-dev.20251226.1"
"@use-gesture/react": "npm:10.3.1"
"@vercel/analytics": "npm:^1.6.1"
"@vitejs/plugin-react": "npm:6.0.0"
@@ -7385,87 +7384,6 @@ __metadata:
languageName: node
linkType: hard
"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20251226.1"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20251226.1"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20251226.1"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20251226.1"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20251226.1"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20251226.1"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20251226.1"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@typescript/native-preview@npm:^7.0.0-dev.20251226.1":
version: 7.0.0-dev.20251226.1
resolution: "@typescript/native-preview@npm:7.0.0-dev.20251226.1"
dependencies:
"@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20251226.1"
"@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20251226.1"
dependenciesMeta:
"@typescript/native-preview-darwin-arm64":
optional: true
"@typescript/native-preview-darwin-x64":
optional: true
"@typescript/native-preview-linux-arm":
optional: true
"@typescript/native-preview-linux-arm64":
optional: true
"@typescript/native-preview-linux-x64":
optional: true
"@typescript/native-preview-win32-arm64":
optional: true
"@typescript/native-preview-win32-x64":
optional: true
bin:
tsgo: bin/tsgo.js
checksum: 10c0/99df69ff117c2e5d4d6ca028f20f0453b1151cfab54a5614231f60a57fd98ea0152a423a58127b1b61aa7f677004931a03217e9ebe71d968be3d91e3776ad49f
languageName: node
linkType: hard
"@typescript/typescript-aix-ppc64@npm:7.0.2":
version: 7.0.2
resolution: "@typescript/typescript-aix-ppc64@npm:7.0.2"