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

Add npm_config_user_agent when running bun create #11016

Open
C0RR1T opened this issue May 11, 2024 · 0 comments
Open

Add npm_config_user_agent when running bun create #11016

C0RR1T opened this issue May 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@C0RR1T
Copy link

C0RR1T commented May 11, 2024

What is the problem this feature would solve?

Other package managers (like pnpm, yarn and the like) inject npm_config_user_agent into process.env when running scripts. this makes it really easy for packages to differentiate which package manager was used to execute the script. Bun also seems to do this in some cases, but not in bun create (didn't test any command besides bun run, I've heard that it works with bunx aswell.

What is the feature you are proposing to solve the problem?

Add the bun user agent via the process.env.npm_config_user_agent variable when running bun create

What alternatives have you considered?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant