Skip to content

Commit

Permalink
fix: fix a bug that program could not read config file from given path
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 committed Oct 4, 2022
1 parent 43e53b7 commit 9e0d468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function main({ args, options: { source, config: configPath, n: noOverwrit
if (fs.existsSync(configFilePath)) {
logger.info(`use custom configuration file: ${configFilePath}`);

const configData = await fs.readFile(path.join(process.cwd(), ".solv.yml")).then(res => res.toString());
const configData = await fs.readFile(configFilePath).then(res => res.toString());
config = yaml.parse(configData);
}

Expand Down

0 comments on commit 9e0d468

Please sign in to comment.