Skip to content

Commit 5080b6b

Browse files
Update hono, elysia, express, fastify template to use tsdown (#399)
1 parent 7143c2a commit 5080b6b

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.changeset/wild-feet-win.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": patch
3+
---
4+
5+
Switch to tsdown in server template and update configs

apps/cli/templates/backend/server/server-base/package.json.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "src/index.ts",
44
"type": "module",
55
"scripts": {
6-
"build": "tsc && tsc-alias",
6+
"build": "tsdown",
77
"check-types": "tsc --noEmit",
88
"compile": "bun build --compile --minify --sourcemap --bytecode ./src/index.ts --outfile server"
99
},
@@ -22,7 +22,7 @@
2222
],
2323
{{/if}}
2424
"devDependencies": {
25-
"tsc-alias": "^1.8.11",
25+
"tsdown": "^0.12.9",
2626
"typescript": "^5.8.2"
2727
}
2828
}

apps/cli/templates/frontend/react/next/tsconfig.json.hbs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,23 @@
2323
"@/*": ["./src/*"]
2424
}
2525
},
26-
"include": ["./next-env.d.ts", "./**/*.ts", "./**/*.tsx", "./.next/types/**/*.ts"],
27-
"exclude": ["./node_modules"],
26+
"include": [
27+
"./next-env.d.ts",
28+
"./**/*.ts",
29+
"./**/*.tsx",
30+
"./.next/types/**/*.ts",
31+
{{#if (eq runtime "workers")}}
32+
"../server/worker-configuration.d.ts"
33+
{{/if}}
34+
],
35+
"exclude": [
36+
"./node_modules"
37+
],
2838
{{#unless (or (eq backend "convex") (eq backend "none"))}}
29-
"references": [{
30-
"path": "../server"
31-
}]
39+
"references": [
40+
{
41+
"path": "../server"
42+
}
43+
]
3244
{{/unless}}
3345
}

apps/web/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/build
1414
*.tsbuildinfo
1515
/.open-next/
16+
/.wrangler/
1617

1718
# misc
1819
.DS_Store

0 commit comments

Comments
 (0)