Skip to content

Commit a04162f

Browse files
committed
chore: upgrade to TypeScript 7
1 parent dc87b88 commit a04162f

22 files changed

Lines changed: 1358 additions & 689 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
@@ -260,6 +260,8 @@
260260
"tailwindcss": "^4.3.1",
261261
"tsconfig-paths": "^3.14.1",
262262
"tsx": "^4.20.6",
263+
"typescript": "catalog:",
264+
"typescript-legacy-api": "npm:typescript@6.0.3",
263265
"vite-tsconfig-paths": "^4.0.5"
264266
},
265267
"engines": {

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
@@ -67,7 +67,7 @@
6767
"pkg-pr-new": "0.0.75",
6868
"pkg-types": "1.1.3",
6969
"tsx": "^3.7.1",
70-
"turbo": "^1.10.3",
70+
"turbo": "^1.13.4",
7171
"typescript": "catalog:",
7272
"vite-tsconfig-paths": "^4.0.5",
7373
"vitest": "4.1.7"
@@ -90,11 +90,9 @@
9090
"antlr4ts@0.5.0-alpha.4": "patches/antlr4ts@0.5.0-alpha.4.patch",
9191
"@window-splitter/state@1.1.3": "patches/@window-splitter__state@1.1.3.patch",
9292
"streamdown@2.5.0": "patches/streamdown@2.5.0.patch",
93-
"tsup@8.4.0": "patches/tsup@8.4.0.patch",
9493
"@remix-run/router@1.23.3": "patches/@remix-run__router@1.23.3.patch"
9594
},
9695
"overrides": {
97-
"typescript": "catalog:",
9896
"@types/node": "24.13.3",
9997
"react@^18": "18.3.1",
10098
"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
@@ -240,7 +240,7 @@
240240
"rimraf": "^6.0.1",
241241
"superjson": "^2.2.1",
242242
"ts-essentials": "10.0.1",
243-
"tshy": "^3.0.2",
243+
"tshy": "^4.1.3",
244244
"tsx": "4.17.0"
245245
},
246246
"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)