fix: resolve local dependency context for root package.json scripts (Fixes #1451) - #1462
fix: resolve local dependency context for root package.json scripts (Fixes #1451)#1462KeerthiKumarR wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe root ChangesFrontend script delegation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 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. Comment |
Link your account with GitcordThanks for opening this PR, @KeerthiKumarR! To receive Discord notifications and contributor tracking for this organization:
Once linked, Gitcord can notify you about reviews, merges, and more. — Posted by Gitcord |
Fixes #1451
Problem
The root
package.jsonprovided scripts for linting and formatting (lint:check,lint:fix,format:check,format:fix), but they executed binaries likeeslintandprettierdirectly after changing directory. If developers didn't haveeslintorprettierinstalled globally, the commands failed withcommand not found, despite the packages existing infrontend/node_modules.Summary of Changes
Updated root
package.jsonscripts to delegate tonpm run <script> --prefix frontend. This leverages npm's built-in binary resolution to correctly locate the localnode_modules/.bininside thefrontenddirectory.Summary by CodeRabbit