File tree Expand file tree Collapse file tree 4 files changed +7
-20
lines changed Expand file tree Collapse file tree 4 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -920,8 +920,11 @@ added:
920
920
> Stability: 1.0 - Early development
921
921
922
922
If present, Node.js will look for a configuration file at the specified path.
923
- Node.js will read the configuration file and apply the settings. The
924
- configuration file should be a JSON file with the following structure. ` vX.Y.Z `
923
+ Node.js will read the configuration file and apply the settings.
924
+ Unless ` --no-experimental-default-config-file ` flag is present, Node.js will look for a
925
+ ` node.config.json ` file in the current working directory and load it as a
926
+ as configuration file.
927
+ The configuration file should be a JSON file with the following structure. ` vX.Y.Z `
925
928
in the ` $schema ` must be replaced with the version of Node.js you are using.
926
929
927
930
``` json
@@ -980,20 +983,6 @@ unknown keys or keys that cannot be used in a namespace.
980
983
Node.js will not sanitize or perform validation on the user-provided configuration,
981
984
so ** NEVER** use untrusted configuration files.
982
985
983
- ### ` --experimental-default-config-file `
984
-
985
- <!-- YAML
986
- added:
987
- - v23.10.0
988
- - v22.16.0
989
- -->
990
-
991
- > Stability: 1.0 - Early development
992
-
993
- If the ` --experimental-default-config-file ` flag is present, Node.js will look for a
994
- ` node.config.json ` file in the current working directory and load it as a
995
- as configuration file.
996
-
997
986
### ` --experimental-eventsource `
998
987
999
988
<!-- YAML
Original file line number Diff line number Diff line change @@ -338,8 +338,7 @@ function setupSQLite() {
338
338
}
339
339
340
340
function initializeConfigFileSupport ( ) {
341
- if ( getOptionValue ( '--experimental-default-config-file' ) ||
342
- getOptionValue ( '--experimental-config-file' ) ) {
341
+ if ( getOptionValue ( '--experimental-config-file' ) ) {
343
342
emitExperimentalWarning ( '--experimental-config-file' ) ;
344
343
}
345
344
}
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ const kFilterArgs = [
102
102
'--test' ,
103
103
'--experimental-test-coverage' ,
104
104
'--watch' ,
105
- '--experimental-default-config-file' ,
106
105
'--experimental-config-file' ,
107
106
] ;
108
107
const kFilterArgValues = [ '--test-reporter' , '--test-reporter-destination' ] ;
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ class EnvironmentOptions : public Options {
261
261
bool report_exclude_env = false ;
262
262
bool report_exclude_network = false ;
263
263
std::string experimental_config_file_path;
264
- bool experimental_default_config_file = false ;
264
+ bool experimental_default_config_file = true ;
265
265
266
266
inline DebugOptions* get_debug_options () { return &debug_options_; }
267
267
inline const DebugOptions& debug_options () const { return debug_options_; }
You can’t perform that action at this time.
0 commit comments