Skip to content

Commit

Permalink
CLI: remove npm prepublish. Fixes #1516
Browse files Browse the repository at this point in the history
  • Loading branch information
ebidel committed Mar 22, 2017
1 parent bad5bda commit 2c566f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lighthouse-cli/compiled-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path');
module.exports = function(filename) {
if (!fs.existsSync(path.join(__dirname, filename))) {
console.log('Oops! Looks like the CLI needs to be compiled. Please run:');
console.log(' npm run install-cli');
console.log(' npm run build-cli');
console.log('More at: https://github.com/GoogleChrome/lighthouse#develop');
process.exit(1);
}
Expand Down
1 change: 0 additions & 1 deletion lighthouse-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"private": true,
"main": "index.js",
"scripts": {
"prepublish": "npm run build",
"build": "tsc",
"dev": "tsc -w"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"scripts": {
"install-all": "npm run install-cli && npm run install-extension && npm run install-viewer",
"install-cli": "cd ./lighthouse-cli && npm install",
"install-cli": "cd ./lighthouse-cli && npm install && npm run build-cli",
"install-extension": "cd ./lighthouse-extension && npm install",
"install-viewer": "cd ./lighthouse-viewer && npm install",
"build-all": "gulp && npm run build-cli && npm run build-extension && npm run build-viewer",
Expand Down

0 comments on commit 2c566f3

Please sign in to comment.