doc: note --env-file is not applied to --run

Environment variables loaded with `--env-file` are not applied to the
command executed by `--run`. Document this limitation under `--run`.

Fixes: https://github.com/nodejs/node/issues/62988
Signed-off-by: Paul Bouchon <mail@bitpshr.net>
PR-URL: https://github.com/nodejs/node/pull/64442
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Paul Bouchon authored and RafaelGSS committed 2026-07-29 10:31:34 -03:00
1 parent 612f60c300
commit cf82de8d8b
1 file changed
+3
+3
View File
@@ -2688,6 +2688,9 @@ The following environment variables are set when running a script with `--run`:
* `NODE_RUN_PACKAGE_JSON_PATH`: The path to the `package.json` that is being
processed.
Environment variables loaded from a file with [`--env-file`][] are not applied
to the command executed by `--run`.
### `--secure-heap-min=n`
<!-- YAML