|
|
@ -53,7 +53,7 @@ module.exports = class Now extends EventEmitter { |
|
|
|
|
|
|
|
let files |
|
|
|
|
|
|
|
const {pkg, name, description} = await readMetaData(path, { |
|
|
|
const {pkg, name, description, nowConfig} = await readMetaData(path, { |
|
|
|
deploymentType, |
|
|
|
deploymentName, |
|
|
|
quiet, |
|
|
@ -74,9 +74,7 @@ module.exports = class Now extends EventEmitter { |
|
|
|
console.timeEnd('> [debug] Getting files') |
|
|
|
} |
|
|
|
|
|
|
|
const nowProperties = pkg ? pkg.now || {} : {} |
|
|
|
|
|
|
|
forwardNpm = forwardNpm || nowProperties.forwardNpm |
|
|
|
forwardNpm = forwardNpm || nowConfig.forwardNpm |
|
|
|
|
|
|
|
// Read .npmrc
|
|
|
|
let npmrc = {} |
|
|
@ -118,7 +116,7 @@ module.exports = class Now extends EventEmitter { |
|
|
|
|
|
|
|
this._files = hashes |
|
|
|
|
|
|
|
const engines = nowProperties.engines || pkg.engines |
|
|
|
const engines = nowConfig.engines || pkg.engines |
|
|
|
|
|
|
|
const deployment = await this.retry(async bail => { |
|
|
|
if (this._debug) { |
|
|
|