From 973c7f3e7f87267643dad4a15841230f8d2faf3d Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Fri, 10 Oct 2025 10:16:05 +0200 Subject: [PATCH] Improve typechecking speed --- ui/package.json | 3 +- ui/pnpm-lock.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++ ui/tsconfig.app.json | 2 +- ui/worker/index.d.ts | 2 +- 4 files changed, 77 insertions(+), 3 deletions(-) diff --git a/ui/package.json b/ui/package.json index 613faa9..c04e29c 100644 --- a/ui/package.json +++ b/ui/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite dev", - "typecheck": "tsc -b", + "typecheck": "npx tsgo --build .", "lint": "eslint .", "preview": "vite preview", "build:staging": "tsc -b && vite build --mode staging", @@ -69,6 +69,7 @@ "@tailwindcss/vite": "^4.0.14", "@tanstack/react-query": "^5.69.0", "@types/react-router-dom": "^5.3.3", + "@typescript/native-preview": "7.0.0-dev.20251010.1", "ag-grid-community": "^33.2.1", "ag-grid-react": "^33.2.1", "axios": "^1.8.4", diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml index e78d37c..484af9e 100644 --- a/ui/pnpm-lock.yaml +++ b/ui/pnpm-lock.yaml @@ -29,6 +29,9 @@ importers: '@types/react-router-dom': specifier: ^5.3.3 version: 5.3.3 + '@typescript/native-preview': + specifier: 7.0.0-dev.20251010.1 + version: 7.0.0-dev.20251010.1 ag-grid-community: specifier: ^33.2.1 version: 33.2.1 @@ -2271,6 +2274,45 @@ packages: resolution: {integrity: sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-ffVcyxVOQ2vL6oYVKDGwRa7Hylsa9FNIdQCUsXyqbIjo5pwsxL6tHdH/MXq33UbwUEzlUTzeleSwSsUzXG5d4g==} + cpu: [arm64] + os: [darwin] + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-FUHMxbJ9inRG55zLk849jTwV6qxyUUNzuZhqnsZos7AGEtg6pX8NUlbK2soyiMNUZva2hnBACT5lbbzisU+iQQ==} + cpu: [x64] + os: [darwin] + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-Xfmx4HecLZp103Dj+FpCoqqtCHTtOQgMEfC0Vtqt7CkSi7BjRuelNmzSB5qd544BdX7+CoIszcYKXlS4JI2W+w==} + cpu: [arm64] + os: [linux] + + '@typescript/native-preview-linux-arm@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-hPY/QIwWhh+PzdaASwswpsuqC83tN4QK4xA8lUm1OUP7Jw/KMoDRjt4EPgtsUQ5Ge3cwg/W3L3bZ5Pllpzh1vw==} + cpu: [arm] + os: [linux] + + '@typescript/native-preview-linux-x64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-RoPVngywneGvlmdYSPv/vIGB0nR5gzh2Jhm1zVPARF2v0alkb3rwClRNlzhjFAnJsR4kWnxzb5ckHK7GwxF4zA==} + cpu: [x64] + os: [linux] + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-AEqnt7VYIuWfzgaplS66HVTZuH9aoOvBqbjfi7TBT7s0WXRrfNiyCeQX9zseMbjaeyiTDpR2nTRLr88Pr91obA==} + cpu: [arm64] + os: [win32] + + '@typescript/native-preview-win32-x64@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-db8/KdUr1v8fdLZfntwjMR/HPAvEXaVzhScgHIZH0pM6KQrYg6NgBpp90cm8Gxe+C/gN8H9cM4NGdrvLUr1BEw==} + cpu: [x64] + os: [win32] + + '@typescript/native-preview@7.0.0-dev.20251010.1': + resolution: {integrity: sha512-8g35sa5z05QBH4/ENUQ26/TVzruKL9XzJB9zRwDg6AqFxLhWGVfksuM8oXDtUvM4NyVhhRPnF1a7ab/DRuVLkw==} + hasBin: true + '@ungap/structured-clone@1.3.0': resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==} @@ -7858,6 +7900,37 @@ snapshots: '@typescript-eslint/types': 8.26.1 eslint-visitor-keys: 4.2.0 + '@typescript/native-preview-darwin-arm64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-darwin-x64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-linux-arm64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-linux-arm@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-linux-x64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-win32-arm64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview-win32-x64@7.0.0-dev.20251010.1': + optional: true + + '@typescript/native-preview@7.0.0-dev.20251010.1': + optionalDependencies: + '@typescript/native-preview-darwin-arm64': 7.0.0-dev.20251010.1 + '@typescript/native-preview-darwin-x64': 7.0.0-dev.20251010.1 + '@typescript/native-preview-linux-arm': 7.0.0-dev.20251010.1 + '@typescript/native-preview-linux-arm64': 7.0.0-dev.20251010.1 + '@typescript/native-preview-linux-x64': 7.0.0-dev.20251010.1 + '@typescript/native-preview-win32-arm64': 7.0.0-dev.20251010.1 + '@typescript/native-preview-win32-x64': 7.0.0-dev.20251010.1 + '@ungap/structured-clone@1.3.0': {} '@virtuoso.dev/react-urx@0.2.13(react@19.0.0)': diff --git a/ui/tsconfig.app.json b/ui/tsconfig.app.json index 8eaa729..a1afa96 100644 --- a/ui/tsconfig.app.json +++ b/ui/tsconfig.app.json @@ -22,8 +22,8 @@ "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true, - "baseUrl": ".", "paths": { + "*": ["./*"], "@ui/*": ["./src/*"] } }, diff --git a/ui/worker/index.d.ts b/ui/worker/index.d.ts index 6245015..0ea1a9f 100644 --- a/ui/worker/index.d.ts +++ b/ui/worker/index.d.ts @@ -1,4 +1,4 @@ declare const _default: { - fetch(request: Request>): Response; + fetch(request: Request>): Response; }; export default _default;