@@ -939,29 +939,30 @@ files with no extension will be treated as WebAssembly if they begin with the
939939WebAssembly magic number (` \0asm ` ); otherwise they will be treated as ES module
940940JavaScript.
941941
942- ### ` --experimental-config-file `
942+ ### ` --experimental-config-file=config `
943943
944944<!-- YAML
945945added: REPLACEME
946946-->
947947
948948> Stability: 1.0 - Early development
949949
950- Use this flag to specify a configuration file that will be loaded and parsed
951- before the application starts .
950+ If present, Node.js will look for a
951+ configuration file at the specified path .
952952Node.js will read the configuration file and apply the settings.
953953The configuration file should be a JSON file
954954with the following structure:
955955
956+ > \[ !NOTE]
957+ > Replace ` vX.Y.Z ` in the ` $schema ` with the version of Node.js you are using.
958+
956959``` json
957960{
958- "$schema" : " https://nodejs.org/dist/REPLACEME /docs/node_config_json_schema .json" ,
961+ "$schema" : " https://nodejs.org/dist/vX.Y.Z /docs/node-config-schema .json" ,
959962 "nodeOptions" : {
960- "experimental-transform-types" : true ,
961963 "import" : [
962- " amaro/transform "
964+ " amaro/strip "
963965 ],
964- "disable-warning" : " ExperimentalWarning" ,
965966 "watch-path" : " src" ,
966967 "watch-preserve-output" : true
967968 }
@@ -972,7 +973,7 @@ In the `nodeOptions` field, only flags that are allowed in [`NODE_OPTIONS`][] ar
972973No-op flags are not supported.
973974Not all V8 flags are currently supported.
974975
975- It is possible to use the [ official JSON schema] ( ../node_config_json_schema .json )
976+ It is possible to use the [ official JSON schema] ( ../node-config-schema .json )
976977to validate the configuration file, which may vary depending on the Node.js version.
977978Each key in the configuration file corresponds to a flag that can be passed
978979as a command-line argument. The value of the key is the value that would be
@@ -982,7 +983,7 @@ For example, the configuration file above is equivalent to
982983the following command-line arguments:
983984
984985``` bash
985- node --experimental-transform-types -- import amaro/transform --disable-warning=ExperimentalWarning --watch-path=src --watch-preserve-output
986+ node --import amaro/strip --watch-path=src --watch-preserve-output
986987```
987988
988989The priority in configuration is as follows:
@@ -1004,6 +1005,18 @@ unknown keys or keys that cannot used in `NODE_OPTIONS`.
10041005Node.js will not sanitize or perform validation on the user-provided configuration,
10051006so ** NEVER** use untrusted configuration files.
10061007
1008+ ### ` --experimental-default-config-file `
1009+
1010+ <!-- YAML
1011+ added: REPLACEME
1012+ -->
1013+
1014+ > Stability: 1.0 - Early development
1015+
1016+ If the ` --experimental-default-config-file ` flag is present, Node.js will look for a
1017+ ` node.config.json ` file in the current working directory and load it as a
1018+ as configuration file.
1019+
10071020### ` --experimental-eventsource `
10081021
10091022<!-- YAML
0 commit comments