Skip to content

Commit c830da1

Browse files
authored
Merge pull request #36 from nebarf/fix-release
Run lib build before npm publish
2 parents 9f4ae98 + 8b9ab56 commit c830da1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.release-it.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
},
77
"hooks": {
88
"after:bump": [
9-
"npm run changelog",
9+
"yarn changelog",
1010
"git add CHANGELOG.md"
11+
],
12+
"before:npm:release": [
13+
"rimraf lib",
14+
"yarn build"
1115
]
1216
},
1317
"npm": {

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@
4040
"react-dom": "^17.0.2",
4141
"react-hooks-testing-library": "^0.6.0",
4242
"release-it": "^14.11.6",
43+
"rimraf": "^3.0.2",
4344
"ts-jest": "^27.0.5",
4445
"typescript": "^4.4.3"
4546
},
4647
"scripts": {
48+
"rim": "rimraf lib",
4749
"build": "yarn build:esm && yarn build:cjs",
4850
"build:prod": "yarn build:prod:esm && yarn build:prod:cjs",
4951
"build:watch": "yarn build:esm -w && yarn build:cjs -w",

0 commit comments

Comments
 (0)