Skip to content

Commit 45972cc

Browse files
committed
build: typescript 7, emit declarations via tsc instead of dts bundle
1 parent c4d36d8 commit 45972cc

4 files changed

Lines changed: 199 additions & 73 deletions

File tree

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@
3434
],
3535
"scripts": {
3636
"dev": "tsx --watch examples/quickstart-connect.ts",
37-
"build": "tsup",
38-
"prepublishOnly": "tsup",
37+
"build": "tsup && tsc -p tsconfig.build.json --emitDeclarationOnly --declarationMap false",
38+
"prepublishOnly": "pnpm run build",
3939
"release": "node scripts/release.mjs",
40-
"typecheck": "tsgo --noEmit",
41-
"typecheck:legacy": "tsc --noEmit",
40+
"typecheck": "tsc --noEmit",
4241
"typecheck:audit": "tsx scripts/audit-tsgo-compat.ts",
4342
"audit:comments": "tsx scripts/audit-comments.ts",
4443
"audit:any": "tsx scripts/audit-no-any.ts",
@@ -65,7 +64,6 @@
6564
"@types/node": "^24.10.1",
6665
"@types/pg": "^8.20.0",
6766
"@types/qrcode-terminal": "^0.12.2",
68-
"@typescript/native-preview": "7.0.0-dev.20260527.2",
6967
"@vitest/coverage-v8": "4.1.7",
7068
"better-sqlite3": "^11.10.0",
7169
"express": "^5.2.1",
@@ -76,7 +74,7 @@
7674
"size-limit": "^12.1.0",
7775
"tsup": "^8.5.1",
7876
"tsx": "^4.21.0",
79-
"typescript": "^6.0.3",
77+
"typescript": "~7.0.2",
8078
"vitest": "^4.1.7"
8179
},
8280
"dependencies": {

0 commit comments

Comments
 (0)