extractErrors -> extract-errors (#9777)
Dominic Gannaway committed
May 25, 2017 at 19:49 UTC
492f7a8200507d5cc638c2d358e1edd51f61ebb8
3 files changed
+5
-5
scripts/circleci/build.sh
+1
-1
@@ -2,5 +2,5 @@
2
3
set -e
4
5
-npm run build -- --extractErrors
5
+npm run build -- --extract-errors
6
git checkout -- scripts/error-codes/codes.json
\ No newline at end of file
scripts/release-manager/Readme.md
+1
-1
@@ -149,7 +149,7 @@ If you’re just cutting an alpha, you should skip it.
149
Run this so that `scripts/error-codes/codes.json` is up to date:
150
151
```
152
-npm run build -- --extractErrors
152
+npm run build -- --extract-errors
153
```
154
155
Check `git diff`. Do changes, if any, look sensible?
scripts/rollup/build.js
+3
-3
@@ -295,7 +295,7 @@ function getPlugins(
295
const plugins = [
296
babel(updateBabelConfig(babelOpts, bundleType)),
297
alias(
298
- Modules.getAliases(paths, bundleType, isRenderer, argv.extractErrors)
298
+ Modules.getAliases(paths, bundleType, isRenderer, argv['extract-errors'])
299
),
300
];
301
@@ -496,9 +496,9 @@ rimraf('build', () => {
496
console.log(Stats.printResults());
497
// save the results for next run
498
Stats.saveResults();
499
- if (argv.extractErrors) {
499
+ if (argv['extract-errors']) {
500
console.warn(
501
- '\nWarning: this build was created with --extractErrors enabled.\n' +
501
+ '\nWarning: this build was created with --extract-errors enabled.\n' +
502
'this will result in extremely slow builds and should only be\n' +
503
'used when the error map needs to be rebuilt.\n'
504
);