This is a bug in code that I wrote (oops).
I'm pretty sure if your directory structure looks like this:
- dir/
- sink.config.json
- dir2/
- config.json
and you run sink inside of dir2, it will use sink.config.json instead of config.json.
This is because the config search runs findUp for each potentially config filename, instead of searching for all of the config files at each level of the directory. Pretty sure this can be fixed by just passing in the array of filenames.
This is a bug in code that I wrote (oops).
I'm pretty sure if your directory structure looks like this:
and you run
sinkinside ofdir2, it will usesink.config.jsoninstead ofconfig.json.This is because the config search runs
findUpfor each potentially config filename, instead of searching for all of the config files at each level of the directory. Pretty sure this can be fixed by just passing in the array of filenames.