Skip to content

Commit

Permalink
build: Use prepublishOnly script to build production dist package
Browse files Browse the repository at this point in the history
This will run after lerna versions all the packages.
  • Loading branch information
offirgolan committed Jun 13, 2018
1 parent 573e005 commit e6f0cfc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
"posttest": "yarn test:clean",
"server:build": "lerna run build --scope=@pollyjs/node-server",
"server:start": "node ./test/server.js",
"prerelease": "NODE_ENV=production npm-run-all clean build",
"release": "lerna publish"
"release": "yarn run clean && lerna publish"
},
"devDependencies": {
"@commitlint/cli": "^7.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/@pollyjs/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"rollup": "rollup -c ../../../rollup.config.js",
"watch": "yarn rollup -w",
"format": "prettier --config ../../../.prettier.js --write **/*.js",
"lint": "eslint ./*.js src"
"lint": "eslint ./*.js src",
"prepublishOnly": "NODE_ENV=production yarn build"
},
"keywords": [
"polly",
Expand Down
3 changes: 2 additions & 1 deletion packages/@pollyjs/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"rollup": "rollup -c ../../../rollup.config.js",
"watch": "yarn rollup -w",
"format": "prettier --config ../../../.prettier.js --write **/*.js",
"lint": "eslint ./*.js src tests"
"lint": "eslint ./*.js src tests",
"prepublishOnly": "NODE_ENV=production yarn build"
},
"keywords": [
"polly",
Expand Down
3 changes: 2 additions & 1 deletion packages/@pollyjs/node-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"test": "",
"test:build": "",
"test:clean": "",
"lint": "eslint ./*.js src bin"
"lint": "eslint ./*.js src bin",
"prepublishOnly": "NODE_ENV=production yarn build"
},
"dependencies": {
"body-parser": "^1.18.3",
Expand Down

0 comments on commit e6f0cfc

Please sign in to comment.