Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support bun #133

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: support bun #133

wants to merge 3 commits into from

Conversation

km1chno
Copy link
Collaborator

@km1chno km1chno commented Nov 20, 2024

Resolves #87

Changes

  • extend PackageManager type with bun,
  • detect bun as package manager based on presence of bun.lockb file ,
  • dependencies extension uses bun install if bun is detected as package manager,
  • added analogue to mechanism of detecting node version and creating .nvmrc if not found: in case of bun, we look for .bun-version file and create it if not detected (with the currently latest version 1.1.30)
  • small refactor in templates, extracted install commands and "Setup Node" steps to common templated that is included
  • extended extracted sub-templates with options for bun (install command and "Setup bun" step instead of "Setup node")
  • created new test project rn-setup-ci-create-expo-stack-bun generated with create-expo-stack --bun and added it to our suite
  • created new test suite runtime-version-file.test.ts with tests for creating .nvmrc and .bun-version files

@km1chno km1chno self-assigned this Nov 20, 2024
@km1chno km1chno marked this pull request as ready for review November 20, 2024 09:50
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.

add support for bun
1 participant