diff --git a/bin/now-deploy b/bin/now-deploy index 019a22a..09404e8 100755 --- a/bin/now-deploy +++ b/bin/now-deploy @@ -103,6 +103,7 @@ const apiUrl = argv.url || 'https://api.zeit.co'; const isTTY = process.stdout.isTTY; const quiet = !isTTY; const config = cfg.read(); +const alwaysForwardNpm = config.forwardNpm; if (argv.h || argv.help) { help(); @@ -147,7 +148,7 @@ async function sync (token) { await now.create(path, { forceNew, forceSync, - forwardNpm, + forwardNpm: alwaysForwardNpm || forwardNpm, quiet }); } catch (err) { diff --git a/lib/index.js b/lib/index.js index 071d93a..844954f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -65,7 +65,7 @@ export default class Now extends EventEmitter { const nowProperties = pkg.now || {}; - forwardNpm = forwardNpm || nowProperties['forward-npm']; + forwardNpm = forwardNpm || nowProperties['forwardNpm']; // Read .npmrc let npmrc = {};