Skip to content

Commit 30b7509

Browse files
committed
Improve build script
1 parent 4f585ee commit 30b7509

File tree

4 files changed

+169
-3
lines changed

4 files changed

+169
-3
lines changed

bootstrap/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
"version": "1.0.0",
44
"main": "index.ts",
55
"license": "MIT",
6+
"type": "module",
67
"scripts": {
78
"build": "tsc --noEmit && rimraf dist && pnpm tsx esbuild.mts",
8-
"build:esfirsttry": "esbuild index.ts --bundle --platform=node --target=node22 --external:*.node --outfile=dist/index.cjs",
9-
"build:old": "rimraf dist && ncc build index.ts",
109
"start": "tsx .",
1110
"type-check": "tsc --noEmit"
1211
},

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
rmdir /S /Q dist
2+
call pnpm rimraf dist || exit /b
33

44
call pnpm build || exit /b
55

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"kill-port": "2.0.1",
3737
"lint-staged": "^15.3.0",
3838
"prettier": "3.4.2",
39+
"rimraf": "6.0.1",
3940
"tsx": "^4.19.2",
4041
"typescript": "5.7.2",
4142
"typescript-eslint": "^8.19.0",

0 commit comments

Comments
 (0)