Skip to content

fix: ignore bun and ohpm caches in npmignore and gitignore#600

Merged
sunnylqm merged 1 commit into
masterfrom
fix/npmignore-bun-cache
Jul 2, 2026
Merged

fix: ignore bun and ohpm caches in npmignore and gitignore#600
sunnylqm merged 1 commit into
masterfrom
fix/npmignore-bun-cache

Conversation

@sunnylqm

@sunnylqm sunnylqm commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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

  • Added .bun-cache and .ohpm-cache to .npmignore to exclude them from the published npm packages.
  • Added them to .gitignore to avoid tracking them locally.

Summary by CodeRabbit

  • Chores
    • Updated ignored files to exclude additional local cache and hidden directories from version control and package publishing.
    • Reduced the chance of accidentally committing or distributing temporary development artifacts.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7273c2a0-b235-45af-b0d7-a8c1e18231f3

📥 Commits

Reviewing files that changed from the base of the PR and between 37fa549 and 0af05d5.

📒 Files selected for processing (2)
  • .gitignore
  • .npmignore

📝 Walkthrough

Walkthrough

This change adds new ignore patterns to .gitignore and .npmignore, excluding cache and tooling directories (.bun-cache, .ohpm-cache, .e2e-rn077-oldarch, .claude) from version control and npm package publishing.

Changes

Ignore File Updates

Layer / File(s) Summary
Add cache and tooling ignore patterns
.gitignore, .npmignore
Added .bun-cache and .ohpm-cache to .gitignore; added .e2e-rn077-oldarch, .claude, .bun-cache, and .ohpm-cache to .npmignore.

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,
Ignoring files with a tidy dash,
.bun-cache, .ohpm too,
.claude and old-arch bid adieu,
Clean repos make for happy code! 🐇

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/npmignore-bun-cache

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sunnylqm sunnylqm merged commit c23886e into master Jul 2, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant