Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
nravilla committed Sep 25, 2024
1 parent 9b3a0b3 commit 6e81423
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,17 @@ public void installFromDistroProperties(File appDataDir, DistroProperties distro
String program = "openmrs@" + coreVersion;
String legacyPeerDeps = ignorePeerDependencies ? "--legacy-peer-deps" : "";
// print frontend tool version number
nodeHelper.runNpx(String.format("%s --version", program), legacyPeerDeps);
List<File> configFiles = ContentHelper.collectFrontendConfigs(distroProperties);
nodeHelper.runNpx(String.format("%s --version", program), legacyPeerDeps);

List<File> configFiles = ContentHelper.collectFrontendConfigs(distroProperties);
if (configFiles.isEmpty()) {
nodeHelper.runNpx(
String.format("%s assemble --target %s --mode config --config %s", program, buildTargetDir, spaConfigFile), legacyPeerDeps);
} else {
String assembleCommand = assembleWithFrontendConfig(program, buildTargetDir, configFiles, spaConfigFile);
nodeHelper.runNpx(assembleCommand, legacyPeerDeps);
}

nodeHelper.runNpx(
String.format("%s build --target %s --build-config %s", program, buildTargetDir, spaConfigFile), legacyPeerDeps);

Expand Down

0 comments on commit 6e81423

Please sign in to comment.