Skip to content

Commit

Permalink
fix: run build when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rodoabad committed Jun 23, 2018
1 parent 8ac5e31 commit c337f24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
"version": "0.0.0-development",
"description": "This is a test package.",
"main": "./cjs/ManInTheMirror.js",
"module": "./es/ManInTheMirror.js",
"files": [
"cjs",
"es",
"src"
],
"scripts": {
"build": "npm run build-cjs",
"build": "npm run build-cjs && npm run build-es",
"build-cjs": "cross-env BABEL_ENV=cjs parcel build ./src/ManInTheMirror.js --out-dir ./cjs",
"build-es": "cross-env BABEL_ENV=es parcel build ./src/ManInTheMirror.js --out-dir ./es",
"prepublish": "npm run build",
"semantic-release": "semantic-release"
},
"repository": {
Expand Down

0 comments on commit c337f24

Please sign in to comment.