diff --git a/AGENTS.md b/AGENTS.md index f538d885..a50c5935 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/docs/upload-automation-retest-checklist.md b/docs/upload-automation-retest-checklist.md index 21e230e6..bf064ae3 100644 --- a/docs/upload-automation-retest-checklist.md +++ b/docs/upload-automation-retest-checklist.md @@ -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):** diff --git a/package.json b/package.json index c0e9c25e..b7857d40 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/public/llms-full.txt b/public/llms-full.txt index 2f801e22..522da9e5 100644 --- a/public/llms-full.txt +++ b/public/llms-full.txt @@ -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):** diff --git a/tsconfig.json b/tsconfig.json index 5ea6d10f..5b961dac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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, diff --git a/yarn.lock b/yarn.lock index 29da59bc..e8b9833d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"