Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -294,7 +294,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 @@ -490,9 +490,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