Skip to content

Commit 678eff9

Browse files
committed
feat: bundle cli with tsdown
1 parent 1c013cc commit 678eff9

3 files changed

Lines changed: 11 additions & 229 deletions

File tree

packages/cli/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"dist"
2727
],
2828
"scripts": {
29-
"build": "tsup --tsconfig tsconfig.build.json",
29+
"build": "tsdown",
3030
"clean": "git clean -xdf dist node_modules",
3131
"lint": "eslint .",
3232
"typecheck": "tsc --noEmit"
@@ -47,7 +47,8 @@
4747
"@types/fs-extra": "catalog:dev",
4848
"@types/yargs-parser": "catalog:dev",
4949
"eslint": "catalog:dev",
50-
"tsup": "catalog:dev",
50+
"publint": "catalog:dev",
51+
"tsdown": "catalog:dev",
5152
"typescript": "catalog:dev",
5253
"vitest-testdirs": "catalog:dev"
5354
},
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { defineConfig } from "tsup";
1+
import { defineConfig } from "tsdown";
22

33
export default defineConfig({
44
entry: ["./src/cli.ts"],
55
format: ["esm"],
66
clean: true,
77
dts: true,
88
treeshake: true,
9-
bundle: true,
9+
publint: true,
10+
tsconfig: "./tsconfig.build.json",
1011
});

0 commit comments

Comments
 (0)