Skip to content

Commit 56773ba

Browse files
marco-ippolitonodejs-github-bot
authored andcommitted
src: namespace config file flags
PR-URL: #57170 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Paolo Insogna <[email protected]>
1 parent 992036e commit 56773ba

20 files changed

+688
-621
lines changed

doc/api/cli.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -928,17 +928,19 @@ with the following structure:
928928
```json
929929
{
930930
"$schema": "https://nodejs.org/dist/REPLACEME/docs/node_config_json_schema.json",
931-
"experimental-transform-types": true,
932-
"import": [
933-
"amaro/transform"
934-
],
935-
"disable-warning": "ExperimentalWarning",
936-
"watch-path": "src",
937-
"watch-preserve-output": true
931+
"nodeOptions": {
932+
"experimental-transform-types": true,
933+
"import": [
934+
"amaro/transform"
935+
],
936+
"disable-warning": "ExperimentalWarning",
937+
"watch-path": "src",
938+
"watch-preserve-output": true
939+
}
938940
}
939941
```
940942

941-
Only flags that are allowed in [`NODE_OPTIONS`][] are supported.
943+
In the `nodeOptions` field, only flags that are allowed in [`NODE_OPTIONS`][] are supported.
942944
No-op flags are not supported.
943945
Not all V8 flags are currently supported.
944946

0 commit comments

Comments
 (0)