Browse Source

Look up `forward-npm` from now nowProperties

master
Tony Kovanen 9 years ago
parent
commit
9feed0c767
  1. 5
      lib/index.js

5
lib/index.js

@ -63,9 +63,11 @@ export default class Now extends EventEmitter {
throw e;
}
const nowProperties = pkg.now || {};
// Read .npmrc
let npmrc = {};
if (pkg['forward-npm']) {
if (nowProperties['forward-npm']) {
try {
npmrc = await readFile(resolvePath(path, '.npmrc'), 'utf8');
npmrc = parseIni(npmrc);
@ -95,7 +97,6 @@ export default class Now extends EventEmitter {
this._files = hashes;
const nowProperties = pkg.now || {};
const engines = nowProperties.engines || pkg.engines;
const deployment = await this.retry(async (bail) => {

Loading…
Cancel
Save