Skip to content

Commit b9e7481

Browse files
committed
fix: run build in prepublish
1 parent dcb22a1 commit b9e7481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"test": "react-scripts test",
4141
"eject": "react-scripts eject",
4242
"storybook": "start-storybook -p 9090 -s public",
43+
"prepublishOnly": "npm run build",
4344
"build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
4445
"dist": "npm run build && cd dist && npm publish",
4546
"build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",

0 commit comments

Comments
 (0)