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

SUGGESTION: Move volta config to .voltarc or somewhere else. #1731

Closed
zihluwang opened this issue Apr 1, 2024 · 1 comment
Closed

SUGGESTION: Move volta config to .voltarc or somewhere else. #1731

zihluwang opened this issue Apr 1, 2024 · 1 comment

Comments

@zihluwang
Copy link

zihluwang commented Apr 1, 2024

I think writing the toolchains configuration of a project in $PROJECT_DIR/.voltarc or somewhere else is better than writing them to package.json.

All nodes except volta in package.json is available to all users who have nodejs installed, but the node volta is only available to users installed Volta on their machines.

If someone don't know what Volta is and removes the volta node in package.json, the configuration will be disabled and cause errors due to environments.

@charlespierce
Copy link
Contributor

Hi @zihluwang, thanks for the suggestion! We're tracking that in #282 currently, so follow that issue for updates. Right now, the main issue is that we need a design for the behavior that handles edge / corner cases (likely via an RFC).

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

No branches or pull requests

2 participants