|
|
@ -115,8 +115,9 @@ export default class Now extends EventEmitter { |
|
|
|
// we report about files whose sizes are too big
|
|
|
|
if (deployment.warnings) { |
|
|
|
let sizeExceeded = 0; |
|
|
|
deployment.warnings.forEach(({ reason, sha, limit }) => { |
|
|
|
if ('size_limit_exceeded' === reason) { |
|
|
|
deployment.warnings.forEach((warning) => { |
|
|
|
if ('size_limit_exceeded' === warning.reason) { |
|
|
|
const { sha, limit } = warning; |
|
|
|
const name = hashes.get(sha).names.pop(); |
|
|
|
console.error('> \u001b[31mWarning!\u001b[39m Skipping file %s (size exceeded %s)', |
|
|
|
name, |
|
|
@ -124,6 +125,12 @@ export default class Now extends EventEmitter { |
|
|
|
); |
|
|
|
hashes.get(sha).names.unshift(name); // move name (hack, if duplicate matches we report them in order)
|
|
|
|
sizeExceeded++; |
|
|
|
} else if ('node_version_not_found' === warning.reason) { |
|
|
|
const { wanted, used } = warning; |
|
|
|
console.error('> \u001b[31mWarning!\u001b[39m Requested node version %s is not available, using default version %s', |
|
|
|
wanted, |
|
|
|
used |
|
|
|
); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|