Make plain vercel follow the active profile, move to Bun, add install.sh - #1
Merged
Merged
Conversation
…tall.sh Plain `vercel` ignored `vcx profile use` because vcx only passed --global-config to its own child processes. vcx now links Vercel's default global config directory to the active profile so both commands agree. Also switch the package manager, scripts, CI, and docs from npm to Bun and add a curl-able install.sh. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
`vcx profile use pc-style` followed by `vercel whoami` still showed the old account. vcx only passed `--global-config` to the processes it spawned, so the plain `vercel` command kept using its own global login.
Installing also went through npm, and there was no one-line install.
Fix
/.local/share/com.vercel.cli`, `/Library/Application Support/com.vercel.cli`, `%APPDATA%\xdg.data\com.vercel.cli`) to that profile's directory. An existing real directory is moved to `.before-vcx` once and never deleted. Link failures are a warning, since `vcx ` still works through `--global-config`. `VCX_VERCEL_GLOBAL_DIR` overrides the path.Version bumped to 0.3.0. The README pins `github:akrupa-appto/vcx#v0.3.0`, so tag `v0.3.0` after merging.
🤖 Generated with Claude Code