We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cccdf0c commit 2ed6a13Copy full SHA for 2ed6a13
scripts/build.js
@@ -112,7 +112,12 @@ function build(previousFileSizes) {
112
if (messages.errors.length) {
113
return reject(new Error(messages.errors.join('\n\n')));
114
}
115
- if (process.env.CI && process.env.CI.toLowerCase() !== 'false' && messages.warnings.length) {
+ if (
116
+ process.env.CI &&
117
+ (typeof process.env.CI !== 'string' ||
118
+ process.env.CI.toLowerCase() !== 'false') &&
119
+ messages.warnings.length
120
+ ) {
121
console.log(
122
chalk.yellow(
123
'\nTreating warnings as errors because process.env.CI = true.\n' +
0 commit comments