Skip to content

cli: add `NODE_RUN_PACKAGE_JSON_PATH` env

This change adds a NODE_RUN_PACKAGE_JSON_PATH environment variable when it's executed with node --run. This is required for cli runners to know the context of the task they are running. More information can be found in the reference issue.

Ref: https://github.com/nodejs/node/issues/52673

cc @nodejs/cpp-reviewers

Merge request reports

Loading