Skip to content

Clarify the interaction of useNodeVersion/executionEnv.nodeVersion and nodeVersion in settings documentation #667

Open
@sdavids

Description

@sdavids

https://pnpm.io/settings#usenodeversion

https://pnpm.io/settings#executionenvnodeversion

https://pnpm.io/settings#nodeversion

If you want to prevent contributors of your project from adding new incompatible dependencies, use > nodeVersion and engineStrict in a pnpm-workspace.yaml file at the root of the project:

DRY:

useNodeVersion: 12.22.0
engineStrict: true
executionEnv:
  nodeVersion: 12.22.0
engineStrict: true

Or not DRY?

useNodeVersion: 12.22.0
nodeVersion: 12.22.0
engineStrict: true
executionEnv:
  nodeVersion: 12.22.0
nodeVersion: 12.22.0
engineStrict: true

node -v is executed after the useNodeVersion/executionEnv.nodeVersion has been installed therefore an explicit nodeVersion is unnecessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions