Skip to content

Commit

Permalink
(fix) Fix merging configuration files to properly call readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Sep 26, 2024
1 parent fefe521 commit ce1346d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tooling/openmrs/src/commands/assemble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export async function runAssemble(args: AssembleArgs) {
if (args.configFiles && args.configFiles.length > 0) {
const assembledConfig = args.configFiles.reduce(async (merged, file) => {
try {
const config = JSON.parse((await readFile(file), 'utf8'));
const config = JSON.parse(await readFile(file, 'utf8'));
return merge(merged, config);
} catch (e) {
logWarn(`Error while processing config file ${file}: ${e}`);
Expand Down

0 comments on commit ce1346d

Please sign in to comment.