Skip to content

Commit 433657d

Browse files
marco-ippolitotargos
authored andcommitted
src: namespace config file flags
PR-URL: #57170 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it>
1 parent d8937f1 commit 433657d

20 files changed

+688
-621
lines changed

doc/api/cli.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -936,17 +936,19 @@ with the following structure:
936936
```json
937937
{
938938
"$schema": "https://nodejs.org/dist/REPLACEME/docs/node_config_json_schema.json",
939-
"experimental-transform-types": true,
940-
"import": [
941-
"amaro/transform"
942-
],
943-
"disable-warning": "ExperimentalWarning",
944-
"watch-path": "src",
945-
"watch-preserve-output": true
939+
"nodeOptions": {
940+
"experimental-transform-types": true,
941+
"import": [
942+
"amaro/transform"
943+
],
944+
"disable-warning": "ExperimentalWarning",
945+
"watch-path": "src",
946+
"watch-preserve-output": true
947+
}
946948
}
947949
```
948950

949-
Only flags that are allowed in [`NODE_OPTIONS`][] are supported.
951+
In the `nodeOptions` field, only flags that are allowed in [`NODE_OPTIONS`][] are supported.
950952
No-op flags are not supported.
951953
Not all V8 flags are currently supported.
952954

0 commit comments

Comments
 (0)