From ed56084f2c918c6bb1daa6e1b541bd302f83875b Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 17 Mar 2016 19:35:40 -0700 Subject: [PATCH] index: support `now-start` --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 35a9bf2..a0425d7 100644 --- a/lib/index.js +++ b/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;