Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build exit non zero on failure #153

Merged
merged 2 commits into from
Mar 9, 2022

Conversation

danielbeardsley
Copy link
Contributor

Previously, a build failure would print the webpack errors, but exit 0
(with an unhandled promise rejection warning).

Note: this was true on node 10, not sure of the other platforms.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

The PR fulfills these requirements:

  • It's submitted to the dev branch, not the master branch

Previously, a build failure would print the webpack errors, but exit 0
(with an unhandled promise rejection warning).

Note: this was true on node 10, not sure of the other platforms.
Copy link
Contributor

@evannoronha evannoronha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some suggestions to satisfy the linter.

cli/index.js Outdated Show resolved Hide resolved
cli/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@evannoronha evannoronha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hayes0724 hayes0724 merged commit a9f922a into hayes0724:dev Mar 9, 2022
hayes0724 pushed a commit that referenced this pull request Mar 9, 2022
* CLI: exit 1 on error

Previously, a build failure would print the webpack errors, but exit 0
(with an unhandled promise rejection warning).

Note: this was true on node 10, not sure of the other platforms.

* Linter fixes: throw error instead of process.exit()
github-actions bot pushed a commit that referenced this pull request Mar 9, 2022
## [2.4.4](v2.4.3...v2.4.4) (2022-03-09)

### Bug Fixes

* Build exit non zero on failure ([#153](#153)) ([8b595f9](8b595f9))
* Environment vars: allow them to work ([#184](#184)) ([009f704](009f704))
* handle {file}.css.liquid assets correctly ([0f8e0ce](0f8e0ce)), closes [#144](#144)
* ssl:make timing bug ([#180](#180)) ([bec0e9e](bec0e9e))
Dejanimitrijevic pushed a commit to Dejanimitrijevic/shopify-packer that referenced this pull request May 28, 2024
## [2.4.4](hayes0724/shopify-packer@v2.4.3...v2.4.4) (2022-03-09)

### Bug Fixes

* Build exit non zero on failure ([#153](hayes0724/shopify-packer#153)) ([8b595f9](hayes0724/shopify-packer@8b595f9))
* Environment vars: allow them to work ([#184](hayes0724/shopify-packer#184)) ([009f704](hayes0724/shopify-packer@009f704))
* handle {file}.css.liquid assets correctly ([0f8e0ce](hayes0724/shopify-packer@0f8e0ce)), closes [#144](hayes0724/shopify-packer#144)
* ssl:make timing bug ([#180](hayes0724/shopify-packer#180)) ([bec0e9e](hayes0724/shopify-packer@bec0e9e))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants