Repository navigation
fix: add missing runtime dependencies for pnpm strict mode - #8099
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates package dependency declarations to ensure required runtime modules are available and align package relationships across the monorepo.
Changes:
- Add
qstobruno-requestsdependencies. - Add
@usebruno/requestsdependency tobruno-js. - Move
nanoidfromdevDependenciestodependenciesinbruno-filestore.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/bruno-requests/package.json | Adds qs as a runtime dependency. |
| packages/bruno-js/package.json | Adds dependency on @usebruno/requests. |
| packages/bruno-filestore/package.json | Reclassifies nanoid as a runtime dependency. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. WalkthroughAdds missing runtime dependency declarations: ChangesRuntime Dependency Declarations
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The dependency declarations consistently address runtime installation under pnpm strict mode, with no remaining merge risk identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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. Packages declare what runtime imports need, Comment |
|
You could even get rid of qs and use something built into the JS engines: https://replacements.fyi/qs |
|
Hi @aritradhabal , thank you for the PR. We'll look into it. |
|
Thank you! |
|
@sreelakshmi-bruno Any movement on the investigation here? This is a big blocker for projects trying to keep current. It means either staying back on |
# Conflicts: # package-lock.json # packages/bruno-filestore/package.json # packages/bruno-js/package.json # packages/bruno-requests/package.json
Description
Fixes #8077
Internal - BRU-3489
Bruno CLI fails with
Cannot find module 'qs'when installed globally with pnpm 11. This happens because pnpm uses a strictnode_moduleslayout where packages can only access dependencies they explicitly declare. npm/yarn mask this by hoisting everything flat.Three missing/misplaced dependency declarations were fixed:
Files Changed:
packages/bruno-requests/package.json: Addedqstodependencies. It's imported inoauth2-helper.tsbut only@types/qswas declared.packages/bruno-filestore/package.json: MovednanoidfromdevDependenciestodependencies. It's required at runtime inutils/index.ts.packages/bruno-js/package.json: Added@usebruno/requeststodependencies. It's required at runtime inbru.jsbut was never declared.package-lock.json: Updated to reflect the above changes.After fix:
Contribution Checklist:
Summary by CodeRabbit