Skip to content

Commit 2c27c33

Browse files
src: namespace config file flags
PR-URL: nodejs#57170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
1 parent 19e278c commit 2c27c33

20 files changed

Lines changed: 697 additions & 621 deletions

doc/api/cli.md

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

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

0 commit comments

Comments
 (0)