Browse Source

index: support `now-start`

master
Guillermo Rauch 9 years ago
parent
commit
ed56084f2c
  1. 4
      lib/index.js

4
lib/index.js

@ -50,8 +50,8 @@ export default class Now extends EventEmitter {
throw e;
}
if (!pkg.scripts || !pkg.scripts.start) {
const e = Error('Missing `start` script in `package.json`. ' +
if (!pkg.scripts || (!pkg.scripts.start && !pkg.scripts['now-start'])) {
const e = Error('Missing `start` (or `now-start`) script in `package.json`. ' +
'See: https://docs.npmjs.com/cli/start.');
e.userError = true;
throw e;

Loading…
Cancel
Save