mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Update hono, elysia, express, fastify template to use tsdown (#399)
This commit is contained in:
5
.changeset/wild-feet-win.md
Normal file
5
.changeset/wild-feet-win.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Switch to tsdown in server template and update configs
|
||||||
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
1
apps/web/.gitignore
vendored
@@ -13,6 +13,7 @@
|
|||||||
/build
|
/build
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
/.open-next/
|
/.open-next/
|
||||||
|
/.wrangler/
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
Reference in New Issue
Block a user