Skip to content

Commit

Permalink
fix: run build in prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Apr 11, 2020
1 parent dcb22a1 commit b9e7481
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9090 -s public",
"prepublishOnly": "npm run build",
"build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
"dist": "npm run build && cd dist && npm publish",
"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",
Expand Down

0 comments on commit b9e7481

Please sign in to comment.