Skip to content

Commit 3f5f4b3

Browse files
authored
chore: Add rimraf to remove dist directory before build (#57)
1 parent 26d3a11 commit 3f5f4b3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"examples/*"
1111
],
1212
"scripts": {
13-
"build": "tsc -p tsconfig.json",
13+
"build": "rimraf dist && tsc -p tsconfig.json",
1414
"preview": "npm run build && npm -C examples/react-app run generate:api",
1515
"prepublishOnly": "npm run build",
1616
"release": "npx git-ensure -a && npx bumpp --commit --tag --push"
@@ -41,6 +41,7 @@
4141
"@types/node": "^20.10.6",
4242
"commander": "^12.0.0",
4343
"glob": "^10.3.10",
44+
"rimraf": "^5.0.5",
4445
"ts-morph": "^22.0.0",
4546
"typescript": "^5.3.3"
4647
},

pnpm-lock.yaml

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)