Add clean script
This commit is contained in:
parent
ab4ba4c5c4
commit
74e4df4bbe
2 changed files with 4 additions and 0 deletions
|
@ -7,5 +7,8 @@
|
|||
"npm": {
|
||||
"publish": true,
|
||||
"publishPath": "./dist"
|
||||
},
|
||||
"hooks": {
|
||||
"after:bump": ["pnpm clean", "pnpm build"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"prepublishOnly": "pnpm build",
|
||||
"watch": "tsup-node src/* --format esm,cjs --dts --watch",
|
||||
"build": "tsup-node src/* --format esm,cjs --dts && clear-package-json package.json -o dist/package.json --fields publishConfig",
|
||||
"clean": "rm -rf ./dist/*",
|
||||
"test": "vitest",
|
||||
"test:ci": "CI=true vitest",
|
||||
"prepare": "husky install",
|
||||
|
|
Loading…
Reference in a new issue