We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b38c54 commit 31a4d14Copy full SHA for 31a4d14
packages/react-scripts/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