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

Respect engineStrict setting in package.json to fix Node.js version #14030

Open
wottpal opened this issue Sep 19, 2024 · 0 comments
Open

Respect engineStrict setting in package.json to fix Node.js version #14030

wottpal opened this issue Sep 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wottpal
Copy link

wottpal commented Sep 19, 2024

What is the problem this feature would solve?

Currently, we have specified Node.js 20 in the engines field in our package.json. But in practice, you don't notice at all if a different Node.js version is active on a system during bun run and bunx commands (which default to use Node.js w/o --bun). This regularly causes issues (a) across our team and (b) with the CI.

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

There already is the engineStrict boolean flag specified for package.json's. I would suggest bun (install|run|exec|…) to follow this rule and fail if node is running on a different version than specified.

What alternatives have you considered?

No response

@wottpal wottpal added the enhancement New feature or request label Sep 19, 2024
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