Skip to content

Commit 0545e1b

Browse files
marco-ippolitoaduh95
authored andcommitted
src: namespace config file flags
PR-URL: #57170 Backport-PR-URL: #57958 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
1 parent 8f36a2c commit 0545e1b

20 files changed

+697
-621
lines changed

doc/api/cli.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -958,17 +958,19 @@ with the following structure:
958958
```json
959959
{
960960
"$schema": "https://nodejs.org/dist/REPLACEME/docs/node_config_json_schema.json",
961-
"experimental-transform-types": true,
962-
"import": [
963-
"amaro/transform"
964-
],
965-
"disable-warning": "ExperimentalWarning",
966-
"watch-path": "src",
967-
"watch-preserve-output": true
961+
"nodeOptions": {
962+
"experimental-transform-types": true,
963+
"import": [
964+
"amaro/transform"
965+
],
966+
"disable-warning": "ExperimentalWarning",
967+
"watch-path": "src",
968+
"watch-preserve-output": true
969+
}
968970
}
969971
```
970972

971-
Only flags that are allowed in [`NODE_OPTIONS`][] are supported.
973+
In the `nodeOptions` field, only flags that are allowed in [`NODE_OPTIONS`][] are supported.
972974
No-op flags are not supported.
973975
Not all V8 flags are currently supported.
974976

0 commit comments

Comments
 (0)