Skip to content

Commit

Permalink
Bug 1420934 - Ensure npm install on netmonitor before installing in…
Browse files Browse the repository at this point in the history
… webconsole;r=Honza

If the netmonitor hasn't had `npm install` ran, then running the webconsole tests fail,
because the webconsole depends on netmonitor, and the babel plugin "transform-object-rest-spread"
defined in netmonitor/.babelrc cannot be resolved unless if it's been installed.

MozReview-Commit-ID: KyQgja5rRpg

--HG--
extra : rebase_source : 9a8487fccd7c8641f47dcc405be3c8324bf8474c
  • Loading branch information
bgrins committed Jan 11, 2018
1 parent e295e89 commit 46ff68f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devtools/client/webconsole/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"node": ">=6.9.0"
},
"scripts": {
"preinstall": "cd ../netmonitor && npm install && cd ../webconsole",
"start": "cross-env NODE_ENV=production node bin/dev-server",
"dev": "node bin/dev-server",
"test": "cross-env NODE_ENV=test NODE_PATH=../../../ mocha new-console-output/test/**/*.test.js --compilers js:babel-register -r jsdom-global/register -r ./new-console-output/test/require-helper.js"
Expand Down

0 comments on commit 46ff68f

Please sign in to comment.