feat(cli): add Bun as a package manager option#280
Open
gonzoblasco wants to merge 3 commits into
Open
Conversation
- Add bun plugin with update step (bun upgrade) - Add bun to PackageManager type and oclif flag options - Add bun entries to all 5 package-manager-utils maps - Add --use-bun flag to create-next-app invocation - Register bunPlugin in setup and stepsOrder - Add bun to technologies sort order - Add E2E test for bun
|
@gonzoblasco is attempting to deploy a commit to the 9ty Team on Vercel. A member of the Team first needs to authorize it. |
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.
Add support for Bun (#262)
Closes #262
Summary
Adds Bun as a fourth package manager option alongside pnpm, yarn, and npm.
Changes
bun.tswith anupdateBunstep that runsbun upgrade"bun"added toPackageManagertype and oclif flag optionspackage-manager-utils.ts(install, cleanInstall, installSub, uninstallSub, runCommand, saveDev)--use-bunflag passed to CNA when Bun is selectedbunPluginimported and registered insetup.tsupdateBunadded tostepsOrderinsteps.tsbunadded totechnologiesSortOrderbun.test.tsverifies generated project hasbun.lockand no other lockfilesVerification
pnpm run build— clean (CLI + website)pnpm run lint— no errorspnpm run unit— 9/9 tests pass./bin/run --helpshowspnpm|yarn|npm|bunNotes
--use-bunflag is supported by create-next-app since v13.5+.bun upgradeis used instead ofnpm i -g bunto stay consistent with Bun's own update mechanism.