From ce1346deab8beb20032aec6dff88823ae00c8332 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 26 Sep 2024 16:24:50 -0400 Subject: [PATCH] (fix) Fix merging configuration files to properly call readFile --- packages/tooling/openmrs/src/commands/assemble.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tooling/openmrs/src/commands/assemble.ts b/packages/tooling/openmrs/src/commands/assemble.ts index 93040ad16..116804c14 100644 --- a/packages/tooling/openmrs/src/commands/assemble.ts +++ b/packages/tooling/openmrs/src/commands/assemble.ts @@ -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}`);