Skip to content

Commit 0ee472f

Browse files
committed
chore: upgrade to TypeScript 7
1 parent ca9a74e commit 0ee472f

22 files changed

Lines changed: 1353 additions & 701 deletions

File tree

apps/webapp/app/utils/searchParams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function createSearchParams<TParams extends ParamType>(
104104
return { success: true, params: new SearchParams<TParams>(parsed.params as TParams, schema) };
105105
}
106106

107-
function parseSearchParams<TParams extends ParamType>(params: TParams, schema: ZodType<TParams>) {
107+
function parseSearchParams<TParams>(params: unknown, schema: ZodType<TParams>) {
108108
const parsedParams = schema.safeParse(params);
109109

110110
if (!parsedParams.success) {

apps/webapp/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@
269269
"tailwindcss": "^4.3.1",
270270
"tsconfig-paths": "^3.14.1",
271271
"tsx": "^4.20.6",
272+
"typescript": "catalog:",
273+
"typescript-legacy-api": "npm:typescript@6.0.3",
272274
"vite-tsconfig-paths": "^5.1.4",
273275
"vite": "^6.4.2"
274276
},

apps/webapp/scripts/runOpsLegacyGuard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* pnpm --filter webapp run guard:runops-legacy # regenerate baseline
1313
* pnpm --filter webapp run guard:runops-legacy -- --check # CI gate
1414
*/
15-
import ts from "typescript";
15+
import ts from "typescript-legacy-api";
1616
import * as fs from "node:fs";
1717
import * as path from "node:path";
1818

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"pkg-pr-new": "0.0.75",
6969
"pkg-types": "1.1.3",
7070
"tsx": "^3.7.1",
71-
"turbo": "^1.10.3",
71+
"turbo": "^1.13.4",
7272
"typescript": "catalog:",
7373
"vite-tsconfig-paths": "^4.0.5",
7474
"vitest": "4.1.7"
@@ -91,12 +91,10 @@
9191
"antlr4ts@0.5.0-alpha.4": "patches/antlr4ts@0.5.0-alpha.4.patch",
9292
"@window-splitter/state@1.1.3": "patches/@window-splitter__state@1.1.3.patch",
9393
"streamdown@2.5.0": "patches/streamdown@2.5.0.patch",
94-
"tsup@8.4.0": "patches/tsup@8.4.0.patch",
9594
"@remix-run/router@1.23.3": "patches/@remix-run__router@1.23.3.patch",
9695
"@clickhouse/client-common@1.12.1": "patches/@clickhouse__client-common@1.12.1.patch"
9796
},
9897
"overrides": {
99-
"typescript": "catalog:",
10098
"@types/node": "24.13.3",
10199
"react@^18": "18.3.1",
102100
"react-dom@^18": "18.3.1",

packages/build/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,17 @@
8484
"pkg-types": "^1.1.3",
8585
"resolve": "^1.22.8",
8686
"tinyglobby": "^0.2.2",
87-
"tsconfck": "3.1.3"
87+
"tsconfck": "3.1.3",
88+
"typescript-legacy-api": "npm:typescript@6.0.3"
8889
},
8990
"devDependencies": {
9091
"@arethetypeswrong/cli": "^0.18.5",
9192
"@types/resolve": "^1.20.6",
9293
"esbuild": "^0.23.0",
9394
"rimraf": "6.0.1",
94-
"tshy": "^3.0.2",
95-
"tsx": "4.17.0"
95+
"tshy": "^4.1.3",
96+
"tsx": "4.17.0",
97+
"typescript": "catalog:"
9698
},
9799
"engines": {
98100
"node": ">=18.20.0"

packages/build/src/extensions/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { BuildExtension } from "@trigger.dev/core/v3/build";
22
import { readFile } from "node:fs/promises";
3-
import typescriptPkg from "typescript";
3+
import typescriptPkg from "typescript-legacy-api";
44

55
const { transpileModule, ModuleKind } = typescriptPkg;
66

packages/cli-v3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"find-up": "^7.0.0",
6868
"rimraf": "^6.0.1",
6969
"ts-essentials": "10.0.1",
70-
"tshy": "^3.0.2",
70+
"tshy": "^4.1.3",
7171
"tsx": "4.17.0"
7272
},
7373
"scripts": {

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"rimraf": "^6.0.1",
245245
"superjson": "^2.2.1",
246246
"ts-essentials": "10.0.1",
247-
"tshy": "^3.0.2",
247+
"tshy": "^4.1.3",
248248
"tsx": "4.17.0"
249249
},
250250
"engines": {

packages/plugins/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
},
2020
"scripts": {
2121
"clean": "rimraf dist .turbo",
22-
"build": "tsup",
23-
"dev": "tsup --watch",
22+
"build": "tsdown",
23+
"dev": "tsdown --watch",
2424
"typecheck": "tsc --noEmit"
2525
},
2626
"devDependencies": {
2727
"@types/node": "^24.13.3",
2828
"rimraf": "6.0.1",
29-
"tsup": "^8.4.0",
29+
"tsdown": "0.22.10",
3030
"typescript": "catalog:"
3131
},
3232
"engines": {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { defineConfig } from "tsup";
1+
import { defineConfig } from "tsdown";
22

33
export default defineConfig({
44
entry: ["src/index.ts"],
55
format: ["cjs", "esm"],
6+
fixedExtension: false,
67
dts: true,
7-
splitting: false,
88
sourcemap: true,
99
clean: true,
1010
treeshake: true,

0 commit comments

Comments
 (0)