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

View File

@@ -23,11 +23,23 @@
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }
}, },
"include": ["./next-env.d.ts", "./**/*.ts", "./**/*.tsx", "./.next/types/**/*.ts"], "include": [
"exclude": ["./node_modules"], "./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"))}} {{#unless (or (eq backend "convex") (eq backend "none"))}}
"references": [{ "references": [
"path": "../server" {
}] "path": "../server"
}
]
{{/unless}} {{/unless}}
} }

1
apps/web/.gitignore vendored
View File

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