Repository navigation
Delete unused dependencies and upgrade Yarn - #4051
Conversation
WalkthroughThis PR updates .yarnrc.yml to add a wildcard approved Git repository list and enable scripts, reformats the preapproved packages list, bumps the pinned Yarn version in package.json, and removes several unused dependencies and devDependencies. ChangesYarn tooling and dependency cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Related PRs: None found. Suggested labels: dependencies, chore Suggested reviewers: None identified. 🐰 A hutch of dependencies swept clean away, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
There was a problem hiding this comment.
Code Review
This pull request updates Yarn to version 4.17.0 and removes several unused dependencies and devDependencies from the project. However, the configuration changes in .yarnrc.yml introduce significant supply-chain security risks. Specifically, allowing any Git repository with a wildcard pattern and globally enabling lifecycle scripts should be avoided. It is highly recommended to restrict approved Git repositories to trusted domains and disable global script execution, enabling scripts selectively instead.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.yarnrc.yml:
- Around line 1-2: Restrict the approvedGitRepositories setting so it only
allows Source Academy-owned git repositories instead of the current wildcard.
Update the .yarnrc.yml configuration to replace the catch-all entry with the
specific Source Academy repository patterns you actually depend on, and include
the matching SSH form if required.
- Line 4: The current Yarn configuration globally enables lifecycle scripts,
which should be avoided. Update the .yarnrc.yml setting so scripts remain
disabled by default, and instead opt in only for the specific dependencies that
require builds by using dependenciesMeta with the built flag in the relevant
package manifests. This change should be applied where enableScripts is
currently set and reviewed alongside any packages that actually need script
execution.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 9e0a3182-58fd-42b5-9698-a4299182656d
⛔ Files ignored due to path filters (1)
yarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (2)
.yarnrc.ymlpackage.json
Coverage Report for CI Build 28637853353Coverage remained the same at 41.192%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats💛 - Coveralls |
Description
Closes #4047
Type of change
How to test
Everything should still work
Checklist
This is part 1 of 2 in a stack made with GitButler: