Skip to content

install.sh: create bun's global manifest before bun add -g - #45

Merged
ralyodio merged 1 commit into
mainfrom
fix/install-sh-bun-global-guard
Oct 13, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/install-sh-bun-global-guard

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Follow-up to #44. When ~/.bun/install/global/package.json is missing, bun add -g writes the packages into the nearest package.json above that directory (seen in testing; on a real box that can be ~/package.json). The installer now creates {} there first.

Tested: bun 1.4.2 in an empty HOME installs all three into ~/.bun and each prints 0.12.1; the npm/~/.local path also works; no parent package.json changes. Discovery tests pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 33626fb into main Oct 13, 2026
4 checks passed
@ralyodio
ralyodio deleted the fix/install-sh-bun-global-guard branch October 13, 2026 00:13
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