Skip to content
Myr

Improve the documentation of the `node`/`nodePath`/`nodeOptions` options (#1011)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent 42bea7f · Browse files · 3 files+14 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+14 added−4 removed

  • other:+14 added−4 removed

3 files+14 added−4 removed

modified:docs/api.md+3 added-1 removed
635 unmodified lines
636_Default:_ `true` with [`execaNode()`](#execanodescriptpath-arguments-options), `false` otherwise637638If `true`, runs with Node.js. The first argument must be a Node.js file.639640The subprocess inherits the current Node.js [CLI flags](https://nodejs.org/api/cli.html#options) and version. This can be overridden using the [`nodeOptions`](#optionsnodeoptions) and [`nodePath`](#optionsnodepath) options.641642[More info.](node.md)643644### options.nodeOptions645646_Type:_ `string[]`\645_Default:_ [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI options)647_Default:_ [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI flags)648649List of [CLI flags](https://nodejs.org/api/cli.html#cli_options) passed to the [Node.js executable](#optionsnodepath).650651Requires the [`node`](#optionsnode) option to be `true`.
394 unmodified lines
modified:docs/node.md+8 added-2 removed
modified:types/arguments/options.d.ts+3 added-1 removed
20 unmodified lines
2122 /**23 If `true`, runs with Node.js. The first argument must be a Node.js file.2425 The subprocess inherits the current Node.js [CLI flags](https://nodejs.org/api/cli.html#options) and version. This can be overridden using the `nodeOptions` and `nodePath` options.2627 @default `true` with `execaNode()`, `false` otherwise28 */29 readonly node?: boolean;30
1 unmodified line
32 List of [CLI flags](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.3334 Requires the `node` option to be `true`.3534 @default [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI options)36 @default [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI flags)37 */38 readonly nodeOptions?: readonly string[];3940 /**
330 unmodified lines