Skip to content

Commit

Permalink
extractErrors -> extract-errors (facebook#9777)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored May 25, 2017
1 parent 824d22c commit 492f7a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/circleci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

npm run build -- --extractErrors
npm run build -- --extract-errors
git checkout -- scripts/error-codes/codes.json
2 changes: 1 addition & 1 deletion scripts/release-manager/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ If you’re just cutting an alpha, you should skip it.
Run this so that `scripts/error-codes/codes.json` is up to date:

```
npm run build -- --extractErrors
npm run build -- --extract-errors
```

Check `git diff`. Do changes, if any, look sensible?
Expand Down
6 changes: 3 additions & 3 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function getPlugins(
const plugins = [
babel(updateBabelConfig(babelOpts, bundleType)),
alias(
Modules.getAliases(paths, bundleType, isRenderer, argv.extractErrors)
Modules.getAliases(paths, bundleType, isRenderer, argv['extract-errors'])
),
];

Expand Down Expand Up @@ -496,9 +496,9 @@ rimraf('build', () => {
console.log(Stats.printResults());
// save the results for next run
Stats.saveResults();
if (argv.extractErrors) {
if (argv['extract-errors']) {
console.warn(
'\nWarning: this build was created with --extractErrors enabled.\n' +
'\nWarning: this build was created with --extract-errors enabled.\n' +
'this will result in extremely slow builds and should only be\n' +
'used when the error map needs to be rebuilt.\n'
);
Expand Down

0 comments on commit 492f7a8

Please sign in to comment.