cosmiconfig
Advanced tools
Changelog
9.0.0
searchStrategy
option:
none
value means that cosmiconfig does not traverse any directories upwards.
stopDir
option, which means that cosmiconfig no longer traverses directories by default, and instead just looks in the current working directory.
stopDir
, add the searchStrategy: 'global'
option.project
value means that cosmiconfig traverses upwards until it finds a package.json
(or .yaml
) file.global
value means that cosmiconfig traverses upwards until the passed stopDir
, or your home directory if no stopDir
is given.config.js
and similar) are not looked for in the current working directory anymore. Instead, it looks in the .config
subfolder.searchPlaces
in a meta config file, the tool-defined searchPlaces
are merged into this. Users may specify mergeSearchPlaces: false
to disable this.$import
key which will import another configuration file
searchStrategy: 'global'
Changelog
8.3.6