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

exit code is not preserved in pnpm run #7817

Closed
2 of 4 tasks
fa93hws opened this issue Mar 22, 2024 · 0 comments · Fixed by #7820
Closed
2 of 4 tasks

exit code is not preserved in pnpm run #7817

fa93hws opened this issue Mar 22, 2024 · 0 comments · Fixed by #7820
Assignees

Comments

@fa93hws
Copy link

fa93hws commented Mar 22, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.15.5

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

Add a foo.sh:

exit 87

Add a package.json:

  "scripts": {
    "foo": "./foo.sh"
  },

run

pnpm run foo
echo $?

gives 1

image

Describe the Bug

exit code should be preserved, instead of exit 1 when the exit code is not zero.

Expected Behavior

exit code should be preserved.

Which Node.js version are you using?

v20.10.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants