volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
10.98k stars 230 forks source link

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

Closed zihluwang closed 6 months ago

zihluwang commented 6 months ago

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 commented 6 months ago

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).