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; throw e;
} }
if (!pkg.scripts || !pkg.scripts.start) { if (!pkg.scripts || (!pkg.scripts.start && !pkg.scripts['now-start'])) {
const e = Error('Missing `start` script in `package.json`. ' + const e = Error('Missing `start` (or `now-start`) script in `package.json`. ' +
'See: https://docs.npmjs.com/cli/start.'); 'See: https://docs.npmjs.com/cli/start.');
e.userError = true; e.userError = true;
throw e; throw e;

Loading…
Cancel
Save