Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Move API to TypeScript 7 stable with TS6 API alias (#3971)

Gergő Móricz20bc426d871f
diff --git a/apps/api/package.json b/apps/api/package.json
index ad1ee1236..0d3652214 100644
--- a/apps/api/package.json
+++ b/apps/api/package.json
@@ -6,12 +6,12 @@
"scripts": {
"start": "tsc && node dist/src/harness.js --start-built",
"dev": "tsx src/harness.ts --start",
- "server": "tsc-watch --onSuccess \"node dist/src/index.js\"",
+ "server": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/index.js\"",
"server:production": "tsc && node dist/src/index.js",
"server:production:nobuild": "node dist/src/index.js",
"format": "prettier --write \"src/**/*.(js|ts)\"",
"flyio": "node dist/src/index.js",
- "start:dev": "tsc-watch --onSuccess \"node dist/src/index.js\"",
+ "start:dev": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/index.js\"",
"build": "tsc",
"branding:print": "node src/scraper/scrapeURL/engines/fire-engine/branding-script/print-script.js",
"build:nosentry": "tsc",
@@ -21,29 +21,29 @@
"test:prod": "vitest run --exclude='**/__tests__/e2e_noAuth/**' --exclude='**/__tests__/e2e_full_withAuth/**' --exclude='**/scraper/scrapeURL/**'",
"test:snips": "vitest run src/__tests__/snips/v1 src/__tests__/snips/v2",
"harness": "tsx src/harness.ts",
- "workers": "tsc-watch --onSuccess \"node dist/src/services/queue-worker.js\"",
+ "workers": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/queue-worker.js\"",
"worker:production": "node dist/src/services/queue-worker.js",
- "nuq-worker": "tsc-watch --onSuccess \"node dist/src/services/worker/nuq-worker.js\"",
+ "nuq-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/worker/nuq-worker.js\"",
"nuq-worker:production": "node dist/src/services/worker/nuq-worker.js",
- "nuq-fdb-worker": "tsc-watch --onSuccess \"node dist/src/services/worker/nuq-fdb-worker.js\"",
+ "nuq-fdb-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/worker/nuq-fdb-worker.js\"",
"nuq-fdb-worker:production": "node dist/src/services/worker/nuq-fdb-worker.js",
- "nuq-prefetch-worker": "tsc-watch --onSuccess \"node dist/src/services/worker/nuq-prefetch-worker.js\"",
+ "nuq-prefetch-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/worker/nuq-prefetch-worker.js\"",
"nuq-prefetch-worker:production": "node dist/src/services/worker/nuq-prefetch-worker.js",
- "nuq-reconciler-worker": "tsc-watch --onSuccess \"node dist/src/services/worker/nuq-reconciler-worker.js\"",
+ "nuq-reconciler-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/worker/nuq-reconciler-worker.js\"",
"nuq-reconciler-worker:production": "node dist/src/services/worker/nuq-reconciler-worker.js",
- "cclog-worker": "tsc-watch --onSuccess \"node dist/src/services/cclog-worker.js\"",
+ "cclog-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/cclog-worker.js\"",
"cclog-worker:production": "node dist/src/services/cclog-worker.js",
- "extract-worker": "tsc-watch --onSuccess \"node dist/src/services/extract-worker.js\"",
+ "extract-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/extract-worker.js\"",
"extract-worker:production": "node dist/src/services/extract-worker.js",
- "index-worker": "tsc-watch --onSuccess \"node dist/src/services/indexing/index-worker.js\"",
+ "index-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/indexing/index-worker.js\"",
"index-worker:production": "node dist/src/services/indexing/index-worker.js",
- "zdr-worker": "tsc-watch --onSuccess \"node dist/src/services/zdr-worker.js\"",
+ "zdr-worker": "tsc-watch --compiler ./node_modules/typescript-7/bin/tsc --onSuccess \"node dist/src/services/zdr-worker.js\"",
"zdr-worker:production": "node dist/src/services/zdr-worker.js",
"mongo-docker": "docker run -d -p 2717:27017 -v ./mongo-data:/data/db --name mongodb mongo:latest",
"mongo-docker-console": "docker exec -it mongodb mongosh",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org caleb-peffer --project firecrawl-scraper-js ./dist && sentry-cli sourcemaps upload --org caleb-peffer --project firecrawl-scraper-js ./dist",
"prepare": "cd ../.. && husky ./apps/api/.husky",
- "knip": "node scripts/knip-with-typescript5.cjs"
+ "knip": "knip"
},
"author": "",
"license": "ISC",
@@ -143,8 +143,8 @@
"tldts": "^6.1.75",
"tough-cookie": "^4.1.4",
"turndown": "^7.1.3",
- "typescript": "7.0.1-rc",
- "typescript5": "npm:[email protected]",
+ "typescript": "npm:@typescript/[email protected]",
+ "typescript-7": "npm:[email protected]",
"undici": "7.28.0",
"uuid": "^13.0.1",
"winston": "^3.14.2",
diff --git a/apps/api/pnpm-lock.yaml b/apps/api/pnpm-lock.yaml
index 891984530..98f1ca2c7 100644
--- a/apps/api/pnpm-lock.yaml
+++ b/apps/api/pnpm-lock.yaml
@@ -257,11 +257,11 @@ importers:
specifier: ^7.1.3
version: 7.2.0
typescript:
- specifier: 7.0.1-rc
- version: 7.0.1-rc
- typescript5:
- specifier: npm:[email protected]
+ specifier: npm:@typescript/[email protected]
+ version: '@typescript/[email protected]'
+ typescript-7:
+ specifier: npm:[email protected]
undici:
specifier: 7.28.0
version: 7.28.0
@@ -334,7 +334,7 @@ importers:
version: 9.1.7
knip:
specifier: ^5.70.1
- version: 5.70.1(@types/[email protected])([email protected])
+ version: 5.70.1(@types/[email protected])(@typescript/[email protected])
lint-staged:
specifier: ^16.1.6
version: 16.1.6
@@ -343,7 +343,7 @@ importers:
version: 6.3.4
tsc-watch:
specifier: ^7.1.1
- version: 7.1.1([email protected])
+ version: 7.1.1(@typescript/[email protected])
tsx:
specifier: ^4.20.3
version: 4.20.3
@@ -2051,126 +2051,130 @@ packages:
resolution: {integrity: sha512-3tPRkv1EtkDpzlgyKyI8pGsGZAGPEaXeu0DOj5DI25Ja91bdAYddYHbADRYVrZMRbfW+1l5YwXVDKohDJNQxkQ==}
- '@typescript/[email protected]':
- resolution: {integrity: sha512-oqq2ZfEJ7BQuufcC3QBQndZLPNyamYNHLao8lKRBeeSkZKypBqxPSgkzrcFZtbYcIaBvpiyUnQP9MT7DEYHWbw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==}
engines: {node: '>=16.20.0'}
cpu: [ppc64]
os: [aix]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-Slc0yTftT2F/uGDmtPst8ijydneL6uZaLEyr2UjahxZpbhTjHFBJ5agXtVz/TL4A+ldxzjzj+E8QtLZlh/5mXw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [darwin]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-h68iFW/LbA1/BsGgSRGFw981/3s1f/rY27YrmeZNuN+ly7dI+fiDduwT9ZT9866x2onoKNRq7PTyxSKyKDzfAQ==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [darwin]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-DE+ppd8Ix2c6OMuRkKY4PJ4hngMGJ9M95OQUP17p9xL/1IKXof7npIeuusMN/bgL5o5JzMfSGh+N+5scTYRg0Q==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [freebsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-ST1ozHMw0u+CLOnWkcTyWDMV4Qn9osZ6fd1V1lnKDM1t0hZIp81mdGpdHxyHJjd7jdGrb6Gb/QXcZ1uqZ0t5zw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [freebsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-N46pRihK3t5zD5MUtTQcdmQUqr1WI4U2nxno1gLwOtRSsB4krFkRjPHcQNG7h2DtRkX64rQiReX6WKwg2wprMA==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-gHmHwT5Naq5CKM8g9bbaGeEpnwQEvWCLn3fwP4K2m61VQdDKkPk0Dhab/OoZ4LV2SrMddmclYXTzpyg23YGt5g==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==}
engines: {node: '>=16.20.0'}
cpu: [arm]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-G17Sao312rgiPBTh2F4nOpLpa3CcnBSaNhqNghZk2LNhnsp1RaMO5HMq2me21gqu9xLpc6CIgHtOzU6JBgNlfg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==}
engines: {node: '>=16.20.0'}
cpu: [loong64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-0FQspOb5UsQ4tQKvWgUO3pS9OIWkP7/8dPRWq+CRazJUeQZ4LBjtYK52jg5iIOrvItrVl2CwvRtrU3/9OihwJg==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==}
engines: {node: '>=16.20.0'}
cpu: [mips64el]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-SUmwfVBEv6A2Ld0eWfcvW0FqrgemfQL8jFGOmV1qYxsDqumjE5DekHXqbstgmbE4SHr4rrjHjvmuGCY+kTH/vw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==}
engines: {node: '>=16.20.0'}
cpu: [ppc64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-rxeqnNnGiYzv/LlPHi/3+4p0ooR1cNJLjRIHXKovtiVmxXGJq6gtw8VSpbHuWPekyFMXgIAoLCZN0SQ51rAALQ==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==}
engines: {node: '>=16.20.0'}
cpu: [riscv64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-RYWCHCiPypxajdRHM2CNK/eM22e4Ex5TTjV2pXf7PTtBowGr0xX8i8kIMknyZS0LX2QfleYHouaoMVsFDSle3g==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==}
engines: {node: '>=16.20.0'}
cpu: [s390x]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-PfLJSu0JzroDkqw2m4nqflPEcn8yev0m/vHFQlY9EzHorzjR6QG0wL8AJHvnD1e6h1s76AZngJ5u+z1K/D/HKw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [linux]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-FfbPxH3dTfp8yVIaNM7bdWTixXuyxpzoemluqcqMROSIz+ImpCG3Q9HO9Ptzp9/giv+P9YYEnCMSXh61migj2w==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [netbsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-FzdTfSzhRYb6hlav6K3cI5RVgcvCTvNAu/vc+t7B6AmZkThQ+t/1ntnvT5fnHmY1Az2RIBw7/b+qtCEG61HJTQ==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [netbsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-PQGhlxfNig+0YQ9Wwzd0USPBkt6w/ZqkBQWsU7G/0JkTzunJel+jSWwhKw4947pak/m7hGSeYiI04xReDLGZww==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [openbsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-WJ7NYgO2mHmLUkI/tZ+hl8lFd26QPJqO8ONOHNuYbdsybLvSB6B6sep222JIVrOfPRDGvFinbGGB+l3m1FWRWA==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [openbsd]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-UYjDeUxd765V9qcwlUPk4pEXyL0i3G76CJm9baK4i99u1pGO1psf3nXDw4MMmElVOPvGbZag99ZR/O59E2OX6w==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [sunos]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-KzXzFSXZOm7zvEt2Aw0MsB2LbTL88znAiVqTDNAOHdlEb7brgmUQh/X2wM/8Be+N0fjEqWKl65cBKNwpWEbJiw==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==}
engines: {node: '>=16.20.0'}
cpu: [arm64]
os: [win32]
- '@typescript/[email protected]':
- resolution: {integrity: sha512-98R3+OqDr/r0/PLWEoXu88AE0lGVLNd335Ew8ONgzK1JWkNs4ou/5BGt3Or1ij4iXjH+c7PRL+jFjCbtWze+EA==}
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==}
engines: {node: '>=16.20.0'}
cpu: [x64]
os: [win32]
+ '@typescript/[email protected]':
+ resolution: {integrity: sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==}
+ hasBin: true
+
'@vercel/[email protected]':
resolution: {integrity: sha512-Fw28YZpRnA3cAHHDlkt7xQHiJ0fcL+NRcIqsocZQUSmbzeIKRpwttJjik5ZGanXP+vlA4SbTg+AbA3bP363l+w==}
engines: {node: '>= 20'}
@@ -4380,8 +4384,13 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
- resolution: {integrity: sha512-drEP77wK7CCDlPfXZH4e008UUQOsw1DFmHmZOZjuNA+yoDLLnSNMZRXi90NbV/1LVo7SbNLq1bs3jjvk49TEqQ==}
+ resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}
engines: {node: '>=16.20.0'}
hasBin: true
@@ -6150,66 +6159,70 @@ snapshots:
dependencies:
'@types/node': 24.10.1
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
- '@typescript/[email protected]':
+ '@typescript/[email protected]':
optional: true
+ '@typescript/[email protected]':
+ dependencies:
+ '@typescript/old': [email protected]
+
'@vercel/[email protected]': {}
'@vitest/[email protected]':
@@ -7368,7 +7381,7 @@ snapshots:
jwa: 2.0.1
safe-buffer: 5.2.1
dependencies:
'@nodelib/fs.walk': 1.2.8
'@types/node': 22.19.1
@@ -7382,7 +7395,7 @@ snapshots:
picomatch: 4.0.4
smol-toml: 1.6.1
strip-json-comments: 5.0.3
- typescript: 7.0.1-rc
+ typescript: '@typescript/[email protected]'
zod: 4.1.12
@@ -8351,13 +8364,13 @@ snapshots:
dependencies:
cross-spawn: 7.0.6
node-cleanup: 2.1.2
ps-tree: 1.2.0
string-argv: 0.3.2
- typescript: 7.0.1-rc
+ typescript: '@typescript/[email protected]'
@@ -8393,28 +8406,30 @@ snapshots:
+
optionalDependencies:
- '@typescript/typescript-aix-ppc64': 7.0.1-rc
- '@typescript/typescript-darwin-arm64': 7.0.1-rc
- '@typescript/typescript-darwin-x64': 7.0.1-rc
- '@typescript/typescript-freebsd-arm64': 7.0.1-rc
- '@typescript/typescript-freebsd-x64': 7.0.1-rc
- '@typescript/typescript-linux-arm': 7.0.1-rc
- '@typescript/typescript-linux-arm64': 7.0.1-rc
- '@typescript/typescript-linux-loong64': 7.0.1-rc
- '@typescript/typescript-linux-mips64el': 7.0.1-rc
- '@typescript/typescript-linux-ppc64': 7.0.1-rc
- '@typescript/typescript-linux-riscv64': 7.0.1-rc
- '@typescript/typescript-linux-s390x': 7.0.1-rc
- '@typescript/typescript-linux-x64': 7.0.1-rc
- '@typescript/typescript-netbsd-arm64': 7.0.1-rc
- '@typescript/typescript-netbsd-x64': 7.0.1-rc
- '@typescript/typescript-openbsd-arm64': 7.0.1-rc
- '@typescript/typescript-openbsd-x64': 7.0.1-rc
- '@typescript/typescript-sunos-x64': 7.0.1-rc
- '@typescript/typescript-win32-arm64': 7.0.1-rc
- '@typescript/typescript-win32-x64': 7.0.1-rc
+ '@typescript/typescript-aix-ppc64': 7.0.2
+ '@typescript/typescript-darwin-arm64': 7.0.2
+ '@typescript/typescript-darwin-x64': 7.0.2
+ '@typescript/typescript-freebsd-arm64': 7.0.2
+ '@typescript/typescript-freebsd-x64': 7.0.2
+ '@typescript/typescript-linux-arm': 7.0.2
+ '@typescript/typescript-linux-arm64': 7.0.2
+ '@typescript/typescript-linux-loong64': 7.0.2
+ '@typescript/typescript-linux-mips64el': 7.0.2
+ '@typescript/typescript-linux-ppc64': 7.0.2
+ '@typescript/typescript-linux-riscv64': 7.0.2
+ '@typescript/typescript-linux-s390x': 7.0.2
+ '@typescript/typescript-linux-x64': 7.0.2
+ '@typescript/typescript-netbsd-arm64': 7.0.2
+ '@typescript/typescript-netbsd-x64': 7.0.2
+ '@typescript/typescript-openbsd-arm64': 7.0.2
+ '@typescript/typescript-openbsd-x64': 7.0.2
+ '@typescript/typescript-sunos-x64': 7.0.2
+ '@typescript/typescript-win32-arm64': 7.0.2
+ '@typescript/typescript-win32-x64': 7.0.2
diff --git a/apps/api/pnpm-workspace.yaml b/apps/api/pnpm-workspace.yaml
index a48093358..90f193765 100644
--- a/apps/api/pnpm-workspace.yaml
+++ b/apps/api/pnpm-workspace.yaml
@@ -5,6 +5,12 @@ minimumReleaseAge: 720 # 12 hours
minimumReleaseAgeExclude:
- fast-xml-parser
- follow-redirects
+ # TypeScript 7 resolves its native platform binaries (e.g.
+ # @typescript/typescript-darwin-arm64) as transitive optional deps, which
+ # the age gate would otherwise silently skip, leaving tsc unable to run.
+ - typescript
+ - "@typescript/typescript6"
+ - "@typescript/typescript-*"
overrides:
"@types/express": "^5.0.6"
patchedDependencies:
diff --git a/apps/api/scripts/knip-with-typescript5.cjs b/apps/api/scripts/knip-with-typescript5.cjs
deleted file mode 100644
index 481589d72..000000000
--- a/apps/api/scripts/knip-with-typescript5.cjs
+++ /dev/null
@@ -1,58 +0,0 @@
-const fs = require("node:fs");
-const path = require("node:path");
-const { spawnSync } = require("node:child_process");
-
-const knipPackagePath = require.resolve("knip/package.json");
-const knipNodeModules = path.dirname(path.dirname(knipPackagePath));
-const knipTypescriptPath = path.join(knipNodeModules, "typescript");
-const typescript5Path = path.dirname(require.resolve("typescript5/package.json"));
-
-// Windows "dir" symlinks require Developer Mode / elevation; junctions do the
-// same thing for directories without any special privilege. The type argument
-// is ignored on non-Windows, so a normal symlink is created there as before.
-const linkType = process.platform === "win32" ? "junction" : "dir";
-
-// Remove a symlink/junction without touching its target. Junctions report as a
-// directory to lstat and must be removed with rmdirSync; symlinks use unlinkSync.
-function removeLink(linkPath) {
- if (!fs.existsSync(linkPath)) return;
- if (fs.lstatSync(linkPath).isDirectory()) {
- fs.rmdirSync(linkPath);
- } else {
- fs.unlinkSync(linkPath);
- }
-}
-
-let originalTarget;
-let hadOriginal = false;
-
-try {
- hadOriginal = fs.existsSync(knipTypescriptPath);
- if (hadOriginal) {
- originalTarget = fs.readlinkSync(knipTypescriptPath);
- removeLink(knipTypescriptPath);
- }
-
- fs.symlinkSync(typescript5Path, knipTypescriptPath, linkType);
-
- const result = spawnSync(
- process.execPath,
- [require.resolve("knip/bin/knip.js"), ...process.argv.slice(2)],
- { stdio: "inherit" },
- );
-
- process.exitCode = result.status ?? 1;
-} finally {
- try {
- removeLink(knipTypescriptPath);
- if (hadOriginal) {
- const restoreTarget = path.isAbsolute(originalTarget)
- ? originalTarget
- : path.resolve(path.dirname(knipTypescriptPath), originalTarget);
- fs.symlinkSync(restoreTarget, knipTypescriptPath, linkType);
- }
- } catch (error) {
- console.error("Failed to restore knip TypeScript peer link:", error);
- process.exitCode = process.exitCode || 1;
- }
-}
diff --git a/apps/api/src/harness.ts b/apps/api/src/harness.ts
index 32d115848..6bd8e00a0 100644
--- a/apps/api/src/harness.ts
+++ b/apps/api/src/harness.ts
@@ -1074,7 +1074,15 @@ async function runDevMode(): Promise<void> {
});
logger.section("Starting development mode");
- watch.start("--project", ".");
+ // The typescript package is aliased to @typescript/typescript6 (which only
+ // ships tsc6), so tsc-watch's default typescript/bin/tsc does not resolve;
+ // point it at TypeScript 7's tsc explicitly, like the package.json scripts.
+ watch.start(
+ "--compiler",
+ "./node_modules/typescript-7/bin/tsc",
+ "--project",
+ ".",
+ );
await new Promise<void>(resolve => {
const stop = () => {
diff --git a/apps/api/src/lib/deterministicJson/pipeline/validate.ts b/apps/api/src/lib/deterministicJson/pipeline/validate.ts
index 0c1c3d8af..8c0eaf6db 100644
--- a/apps/api/src/lib/deterministicJson/pipeline/validate.ts
+++ b/apps/api/src/lib/deterministicJson/pipeline/validate.ts
@@ -1,4 +1,4 @@
-import ts from "typescript5";
+import ts from "typescript";
export interface GeneratedCodeIssue {
field: string;