You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now volta creates own property volta and uses only it. It would be extremely convenient if volta have a look for volta prop first and if it's not found it looks for engines prop.
A few points:
In most cases it's enough to specify only major version in engines prop of a tool instead of major.minor.fix, like node: ^16. But if a user needs to define a specific version he can do in using volta prop. In the first case we don't need to duplicate the info about tool version.
In some cases a user can use volta to work with a project, but other team mates don't. In this case commiting volta prop to package.json is redundant and might be declined on a code review
The text was updated successfully, but these errors were encountered:
This sounds as an good idea on first sense, but will lead to a breaking changes and unexpected behaviour for users who already using global node for some reason. Second issue with semver of such records, e.b. node: ^16 may not work with volta, as it expects exact version
While there were a couple of discussions about the usage of the engines field (#355, for example), in the latest Node versions there's an experimental corepack tool Volta can leverage for setting and referring to the current package manager and its version.
Now
volta
creates own propertyvolta
and uses only it. It would be extremely convenient ifvolta
have a look forvolta
prop first and if it's not found it looks forengines
prop.A few points:
major
version inengines
prop of a tool instead ofmajor.minor.fix
, likenode: ^16
. But if a user needs to define a specific version he can do in usingvolta
prop. In the first case we don't need to duplicate the info about tool version.volta
to work with a project, but other team mates don't. In this case commitingvolta
prop topackage.json
is redundant and might be declined on a code reviewThe text was updated successfully, but these errors were encountered: