Skip to content

Commit f7fdd16

Browse files
committed
refactor(projects): use tsdown replace tsup
1 parent 2acd9df commit f7fdd16

File tree

8 files changed

+293
-610
lines changed

8 files changed

+293
-610
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525
".": {
2626
"types": "./dist/index.d.ts",
2727
"import": "./dist/index.js",
28-
"require": "./dist/index.cjs"
28+
"require": "./dist/index.js"
2929
}
3030
},
31-
"main": "./dist/index.cjs",
31+
"main": "./dist/index.js",
3232
"module": "./dist/index.js",
3333
"types": "./dist/index.d.ts",
3434
"files": ["dist"],
3535
"engines": {
36-
"node": ">=16",
36+
"node": ">=18",
3737
"pnpm": ">=9"
3838
},
3939
"scripts": {
40-
"build": "tsup && pnpm build-pkg",
40+
"build": "tsdown && pnpm build-pkg",
4141
"build-pkg": "pnpm -r --filter='./packages/*' run build",
4242
"cleanup": "soy cleanup",
4343
"commit": "soy git-commit",
@@ -49,7 +49,7 @@
4949
"update-pkg": "soy ncu"
5050
},
5151
"dependencies": {
52-
"@soybeanjs/eslint-config": "^1.7.1",
52+
"@soybeanjs/eslint-config": "1.7.1",
5353
"cli-progress": "3.12.0",
5454
"convert-gitmoji": "0.1.5",
5555
"dayjs": "1.11.15",
@@ -61,11 +61,11 @@
6161
"@soybeanjs/cli": "1.4.0",
6262
"@types/cli-progress": "3.11.6",
6363
"@types/node": "24.3.0",
64-
"@types/semver": "^7.7.0",
64+
"@types/semver": "7.7.0",
6565
"eslint": "9.34.0",
6666
"lint-staged": "16.1.5",
6767
"simple-git-hooks": "2.13.1",
68-
"tsup": "^8.5.0",
68+
"tsdown": "0.14.2",
6969
"tsx": "4.20.5",
7070
"typescript": "5.9.2"
7171
},

packages/githublogen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3939
```
4040
41-
It will be trigged whenever you push a tag to GitHub that starts with `v`.
41+
It will be triggered whenever you push a tag to GitHub that starts with `v`.
4242

4343
## Configuration
4444

packages/githublogen/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
},
2727
"files": ["dist"],
2828
"engines": {
29-
"node": ">=16",
29+
"node": ">=18",
3030
"pnpm": ">=9"
3131
},
3232
"scripts": {
33-
"build": "tsup",
33+
"build": "tsdown",
3434
"typecheck": "tsc --noEmit --skipLibCheck"
3535
},
3636
"dependencies": {
@@ -42,8 +42,9 @@
4242
"ofetch": "1.4.1"
4343
},
4444
"devDependencies": {
45-
"@soybeanjs/cli": "1.3.1",
45+
"@soybeanjs/cli": "1.4.0",
4646
"@types/node": "24.3.0",
47+
"tsdown": "0.14.2",
4748
"typescript": "5.9.2"
4849
}
4950
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'tsdown';
2+
3+
export default defineConfig({
4+
entry: ['src/cli.ts'],
5+
platform: 'node',
6+
clean: true,
7+
dts: false,
8+
sourcemap: false,
9+
minify: false,
10+
external: ['consola']
11+
});

packages/githublogen/tsup.config.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)