Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.32 KB

File metadata and controls

24 lines (17 loc) · 1.32 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @microsoft/rush-lib > IOperationSettings > dependsOnNodeVersion

IOperationSettings.dependsOnNodeVersion property

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Specifies whether and at what granularity the Node.js version should be included in the hash used for the build cache. When enabled, changing the Node.js version at the specified granularity will invalidate cached outputs and cause the operation to be re-executed. This is useful for projects that produce Node.js-version-specific outputs, such as native module builds.

Allowed values: - true - alias for "patch"<></>, includes the full version (e.g. 18.17.1<></>) - "major" - includes only the major version (e.g. 18<></>) - "minor" - includes the major and minor version (e.g. 18.17<></>) - "patch" - includes the full version (e.g. 18.17.1<></>)

Signature:

dependsOnNodeVersion?: boolean | NodeVersionGranularity;