Skip to content

Commit

Permalink
fix: add cosmiconfig search strategy, wasn't finding config files
Browse files Browse the repository at this point in the history
  • Loading branch information
joemaller committed Mar 23, 2024
1 parent 0cdc6ca commit c2c878c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export default function (args = {}) {

const { path, packageJson } = data;

const explorerSync = cosmiconfigSync("version-everything");
const explorerSync = cosmiconfigSync("version-everything", {
searchStrategy: "project",
});
const configFile = explorerSync.search(path) || { config: {} };
const options = { ...configFile.config, ...args };
const log = logInit(options.quiet);
Expand Down

0 comments on commit c2c878c

Please sign in to comment.