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

fix(run): Preserve none zero exit code #6926

Merged
merged 12 commits into from
Mar 14, 2019

Conversation

zhigang1992
Copy link
Contributor

@zhigang1992 zhigang1992 commented Jan 15, 2019

resolve #6925

Summary

index.js

const process = require('process');
process.exit(78)

npm start will yield 78, but yarn start will yield 1.

screen shot 2019-01-15 at 8 44 31 pm

  • Fix yarn node index.js
  • Fix yarn start

Test plan

  • Having unit test covering the exit code

@zhigang1992 zhigang1992 changed the title WIP: Preserve none zero exit code Preserve none zero exit code Jan 15, 2019
src/cli/index.js Outdated Show resolved Hide resolved
@zhigang1992 zhigang1992 changed the title Preserve none zero exit code fix(run): Preserve none zero exit code Jan 15, 2019
src/cli/index.js Outdated Show resolved Hide resolved
src/util/execute-lifecycle-script.js Outdated Show resolved Hide resolved
@zhigang1992
Copy link
Contributor Author

@arcanis please take another look.

@arcanis arcanis merged commit bb69888 into yarnpkg:master Mar 14, 2019
@buildsize
Copy link

buildsize bot commented Mar 14, 2019

File name Previous Size New Size Change
yarn-[version].noarch.rpm 1.11 MB 1.11 MB -1.89 KB (0%)
yarn-[version].js 4.47 MB 4.47 MB -3.37 KB (0%)
yarn-legacy-[version].js 4.67 MB 4.66 MB -3.99 KB (0%)
yarn-v[version].tar.gz 1.12 MB 1.12 MB -20 bytes (0%)
yarn_[version]all.deb 816.45 KB 815.75 KB -718 bytes (0%)

@zhigang1992 zhigang1992 deleted the preserveExitCode branch March 14, 2019 12:59
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.

Preserve none zero exit code
2 participants