fix: ignore bun and ohpm caches in npmignore and gitignore#600
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis change adds new ignore patterns to ChangesIgnore File Updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Related Issues: None specified Related PRs: None specified Suggested labels: None Suggested reviewers: None Poem A rabbit hops through cache and stash, ✨ 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 |
This PR ignores the .bun-cache and .ohpm-cache directories in .npmignore and .gitignore.
Problem
In the GitHub Action publish workflow, BUN_INSTALL_CACHE_DIR is set to the workspace directory's .bun-cache folder. Because .bun-cache was not ignored in .npmignore, it was packaged into the published npm tarball for version 10.43.0, inflating the unpacked size to 429.4 MB and introducing over 38,000 cached dependency files.
Solution
Summary by CodeRabbit