|
|
@ -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; |
|
|
|