Update hono, elysia, express, fastify template to use tsdown (#399)

This commit is contained in:
Aman Varshney
2025-07-14 11:20:31 +05:30
committed by GitHub
parent 7143c2a2f1
commit 5080b6b75f
4 changed files with 25 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
Switch to tsdown in server template and update configs

View File

@@ -3,7 +3,7 @@
"main": "src/index.ts",
"type": "module",
"scripts": {
"build": "tsc && tsc-alias",
"build": "tsdown",
"check-types": "tsc --noEmit",
"compile": "bun build --compile --minify --sourcemap --bytecode ./src/index.ts --outfile server"
},
@@ -22,7 +22,7 @@
],
{{/if}}
"devDependencies": {
"tsc-alias": "^1.8.11",
"tsdown": "^0.12.9",
"typescript": "^5.8.2"
}
}

View File

@@ -23,11 +23,23 @@
"@/*": ["./src/*"]
}
},
"include": ["./next-env.d.ts", "./**/*.ts", "./**/*.tsx", "./.next/types/**/*.ts"],
"exclude": ["./node_modules"],
"include": [
"./next-env.d.ts",
"./**/*.ts",
"./**/*.tsx",
"./.next/types/**/*.ts",
{{#if (eq runtime "workers")}}
"../server/worker-configuration.d.ts"
{{/if}}
],
"exclude": [
"./node_modules"
],
{{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{
"path": "../server"
}]
"references": [
{
"path": "../server"
}
]
{{/unless}}
}

1
apps/web/.gitignore vendored
View File

@@ -13,6 +13,7 @@
/build
*.tsbuildinfo
/.open-next/
/.wrangler/
# misc
.DS_Store