Repository navigation
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pnpm/pnpm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe generated Windows fallback ChangesWindows wrapper exit status
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Assessment against linked issues
Merge Risk: ⚪ Minimal · up to The change aims to help callers detect failed pnpm commands in fallback installs. No concrete blocking regression is established, so it is ready for normal merge checks. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoPropagate pnpm exit codes from fallback Windows wrappers
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
|
@coderabbitai review |
|
Code Review by Qodo
1.
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 2790826 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
This comment has been minimized.
This comment has been minimized.
|
Code review by qodo was updated up to the latest commit 0b12bf9 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Update fallback `.cmd` and `.ps1` Windows wrapper templates in `@pnpm/exe` to propagate exit status from the invoked `pnpm` command via `exit /b %errorlevel%` and `exit $LASTEXITCODE`.
|
Code review by qodo was updated up to the latest commit 89c1731 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…14826) (pnpm#15547) Update fallback `.cmd` and `.ps1` Windows wrapper templates in `@pnpm/exe` to propagate exit status from the invoked `pnpm` command via `exit /b %errorlevel%` and `exit $LASTEXITCODE`. Add tests in `setup.test.ts` verifying that non-zero exit status (and successful subcommand argument forwarding) is propagated properly from both wrapper types. Closes pnpm#14826
Summary
When
@pnpm/exeinstall scripts do not run (or when invoked directly in the artifact directory), fallback.cmdand.ps1wrappers forpn,pnpx, andpnxresolvepnpmfromPATH. Previously, neither wrapper forwarded the exit status of the invokedpnpmcommand:.cmdwrappers, the script reached EOF without returning%errorlevel%..ps1wrappers, PowerShell exited with code 0 upon reaching EOF because$LASTEXITCODEwas not passed toexit.This PR updates
prepare.jsso that:.cmdwrappers end withexit /b %errorlevel%..ps1wrappers end withexit $LASTEXITCODE.Integration tests and assertion checks have been added in
setup.test.tsto verify exit status propagation from both wrapper types on Windows.Closes #14826
Squash Commit Body
Checklist
pnpm changeset) if this PR changes any published package. Keep it short and written for pnpm users — it becomes a release note.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
pn,pnpx, andpnxcommands.