Skip to content

Support bun in Node package manager detection #6408

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

Closed
1 task done
williamhuang910520 opened this issue Apr 28, 2025 · 0 comments
Closed
1 task done

Support bun in Node package manager detection #6408

williamhuang910520 opened this issue Apr 28, 2025 · 0 comments
Assignees
Labels
🤩 enhancement Improvement of a feature

Comments

@williamhuang910520
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed?

Currently, the Node segment's PackageManagerName only detects npm, yarn, and pnpm when fetch_package_manager is enabled.
https://ohmyposh.dev/docs/segments/languages/node#properties-1

It would be a great improvement to also detect bun, a new and increasingly popular JavaScript runtime and package manager.

Specifically:

  • I noticed that oh-my-posh already supports bun as a CLI tool under the CLI segment.
  • Similarly, it would be helpful to add bun support in the Node segment by detecting the existence of bun.lockb (the lockfile used by bun projects).
  • Based on this detection, set .PackageManagerName to bun, and if possible, associate a .PackageManagerIcon just like npm, yarn, and pnpm.

This would ensure better compatibility with projects adopting bun and offer a more complete developer experience for users moving beyond traditional Node.js package managers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤩 enhancement Improvement of a feature
Projects
None yet
Development

No branches or pull requests

2 participants