From 264a18732b06afd4bba8dbcc6c4f3ba5c8e4bd2c Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Sun, 31 Jul 2016 03:31:46 +0300 Subject: [PATCH] Rename to `forwardNpm` and check .now.json for it (#90) --- bin/now-deploy | 3 ++- lib/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/now-deploy b/bin/now-deploy index 483fa06..986d64a 100755 --- a/bin/now-deploy +++ b/bin/now-deploy @@ -102,6 +102,7 @@ const shouldLogin = argv.login; const apiUrl = argv.url || 'https://api.zeit.co'; const config = cfg.read(); +const alwaysForwardNpm = config.forwardNpm; if (argv.h || argv.help) { help(); @@ -141,7 +142,7 @@ async function sync (token) { const now = new Now(apiUrl, token, { debug }); try { - await now.create(path, { forceNew: force, forceSync: forceSync, forwardNpm }); + await now.create(path, { forceNew: force, forceSync: forceSync, forwardNpm: alwaysForwardNpm || forwardNpm }); } catch (err) { handleError(err); process.exit(1); diff --git a/lib/index.js b/lib/index.js index 571fcbd..4db8747 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 = {};