Speed up TS checks (#2111)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Improves TypeScript check performance and dev ergonomics.
>
> - Switches `ts:main` from `tsc` to `tsgo` with `--incremental`; adds
`--incremental` to `ts:workers`
> - Adds `@typescript/native-preview` (and platform binaries) to dev
deps/lockfile to support `tsgo`
> - Moves lint-staged config from `package.json` to
`lint-staged.config.js` and runs `npm run ts` on staged `*.ts,*.tsx`
> - Updates TS configs to remove `baseUrl` and add catch‑all `paths`
mapping (`"*": ["./*"]`) across `tsconfig*.json`
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
d25edc6782daf89b40d7c45c3ac25e6ad5bf5ee5. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
正在显示
lint-staged.config.js
0 → 100644
| ... | @@ -21,8 +21,8 @@ | ... | @@ -21,8 +21,8 @@ |
| "publish": "npm run clean && electron-forge publish", | "publish": "npm run clean && electron-forge publish", | ||
| "verify-release": "node scripts/verify-release-assets.js", | "verify-release": "node scripts/verify-release-assets.js", | ||
| "ts": "npm run ts:main && npm run ts:workers", | "ts": "npm run ts:main && npm run ts:workers", | ||
| "ts:main": "npx tsc -p tsconfig.app.json --noEmit", | "ts:main": "npx tsgo -p tsconfig.app.json --noEmit --incremental", | ||
| "ts:workers": "npx tsc -p workers/tsc/tsconfig.json --noEmit", | "ts:workers": "npx tsc -p workers/tsc/tsconfig.json --noEmit --incremental", | ||
| "lint": "npx oxlint --fix", | "lint": "npx oxlint --fix", | ||
| "lint:fix": "npx oxlint --fix --fix-suggestions --fix-dangerously", | "lint:fix": "npx oxlint --fix --fix-suggestions --fix-dangerously", | ||
| "db:generate": "drizzle-kit generate", | "db:generate": "drizzle-kit generate", | ||
| ... | @@ -66,6 +66,7 @@ | ... | @@ -66,6 +66,7 @@ |
| "@types/node": "^22.14.0", | "@types/node": "^22.14.0", | ||
| "@types/react": "^19.0.10", | "@types/react": "^19.0.10", | ||
| "@types/react-dom": "^19.0.4", | "@types/react-dom": "^19.0.4", | ||
| "@typescript/native-preview": "^7.0.0-dev.20260107.1", | |||
| "@typescript-eslint/eslint-plugin": "^5.62.0", | "@typescript-eslint/eslint-plugin": "^5.62.0", | ||
| "@typescript-eslint/parser": "^5.62.0", | "@typescript-eslint/parser": "^5.62.0", | ||
| "@vitest/ui": "^3.1.1", | "@vitest/ui": "^3.1.1", | ||
| ... | @@ -179,10 +180,6 @@ | ... | @@ -179,10 +180,6 @@ |
| "uuid": "^11.1.0", | "uuid": "^11.1.0", | ||
| "zod": "^3.25.76" | "zod": "^3.25.76" | ||
| }, | }, | ||
| "lint-staged": { | |||
| "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,astro,svelte}": "oxlint", | |||
| "*.{js,css,md,ts,tsx,jsx,json}": "prettier --write" | |||
| }, | |||
| "overrides": { | "overrides": { | ||
| "@vercel/sdk": { | "@vercel/sdk": { | ||
| "@modelcontextprotocol/sdk": "$@modelcontextprotocol/sdk" | "@modelcontextprotocol/sdk": "$@modelcontextprotocol/sdk" | ||
| ... | ... |
请
注册
或者
登录
后发表评论