mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Replace tsup with tsdown, add shebang for CLI
This commit is contained in:
@@ -45,8 +45,8 @@
|
||||
},
|
||||
"homepage": "https://better-t-stack.amanv.dev/",
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"dev": "tsup --watch",
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown --watch",
|
||||
"check-types": "tsc --noEmit",
|
||||
"check": "biome check --write .",
|
||||
"test": "vitest run",
|
||||
@@ -68,7 +68,7 @@
|
||||
"@types/globby": "^9.1.0",
|
||||
"@types/node": "^22.14.1",
|
||||
"@types/yargs": "^17.0.33",
|
||||
"tsup": "^8.4.0",
|
||||
"tsdown": "^0.9.9",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
import path from "node:path";
|
||||
import { cancel, intro, log, outro } from "@clack/prompts";
|
||||
import { consola } from "consola";
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
import { defineConfig } from "tsup";
|
||||
import { defineConfig } from "tsdown";
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["src/index.ts"],
|
||||
format: ["esm"],
|
||||
clean: true,
|
||||
dts: true,
|
||||
shims: true,
|
||||
minify: true,
|
||||
splitting: false,
|
||||
outDir: "dist",
|
||||
banner: {
|
||||
js: "#!/usr/bin/env node",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user