Browse Source

Rename to `forwardNpm` and check .now.json for it (#90)

master
Tony Kovanen 9 years ago
committed by Guillermo Rauch
parent
commit
264a18732b
  1. 3
      bin/now-deploy
  2. 2
      lib/index.js

3
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);

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

Loading…
Cancel
Save