Skip to content

Commit 590de1b

Browse files
committed
squashed: Add TypeScript 7 (tsgo).
1 parent aba68a7 commit 590de1b

18 files changed

Lines changed: 274 additions & 19 deletions

cjs-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"express-zod-api": "workspace:*",
12-
"typescript": "catalog:dev",
12+
"tsgo": "catalog:dev",
1313
"zod": "catalog:dev"
1414
}
1515
}

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"http-errors": "catalog:dev",
2020
"qs": "^6.14.1",
2121
"swagger-ui-express": "^5.0.1",
22+
"tsgo": "catalog:dev",
2223
"typescript": "catalog:dev",
2324
"zod": "catalog:dev"
2425
}

express-zod-api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"node-forge": "^1.3.3",
133133
"snakify-ts": "^2.3.0",
134134
"typescript": "catalog:dev",
135+
"tsgo": "catalog:dev",
135136
"undici": "^8.2.0",
136137
"zod": "catalog:dev"
137138
},

express-zod-api/src/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { brandProperty as brandProp } from "../../zod-plugin/src/brand.ts";
1+
import type { brandProperty as brandProp } from "@express-zod-api/zod-plugin/brand";
22
import { globalRegistry, type z } from "zod";
33

44
export const brandProperty = "x-brand" satisfies typeof brandProp;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"stripInternal": true
5+
},
6+
"include": ["src"]
7+
}

express-zod-api/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"extends": "../tsconfig.json",
3-
"compilerOptions": {
4-
"stripInternal": true
5-
},
63
"include": ["src", "tests", "bench", "*.config.ts", "*.setup.ts"]
74
}

express-zod-api/tsdown.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export default defineConfig({
1717
},
1818
},
1919
plugins: [fixDtsPlugin()],
20+
dts: {
21+
generator: "tsgo",
22+
tsgo: { path: "./node_modules/tsgo/bin/tsc" },
23+
tsconfig: "./tsconfig.build.json",
24+
},
2025
define: {
2126
"process.env.TSDOWN_SELF": `"${manifest.name}"`, // used by localsID
2227
"process.env.TSDOWN_BUILD": `"v${manifest.version}"`, // @since v25.0.0 is pure ESM

issue952-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@types/express": "catalog:dev",
1212
"@types/express-fileupload": "catalog:dev",
1313
"express-zod-api": "workspace:*",
14-
"typescript": "catalog:dev",
14+
"tsgo": "catalog:dev",
1515
"zod": "catalog:dev"
1616
}
1717
}

migration/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
"@oxlint/plugins": "catalog:prod"
4646
},
4747
"devDependencies": {
48-
"typescript": "catalog:dev"
48+
"tsgo": "catalog:dev"
4949
}
5050
}

migration/tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["index.ts", "helpers.ts"]
4+
}

0 commit comments

Comments
 (0)