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 = {};