Skip to content

Commit

Permalink
build script updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumita Mandal committed Aug 27, 2021
1 parent 87d7813 commit 8ed9383
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions integrationBuildScript.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import { exec } from "child_process";
import logger from "./utils/logUtil";
import { configToIntNames } from "./config_to_integration_names";

Object.keys(configToIntNames).forEach((key) => {
console.log(configToIntNames[key]);

exec(
`npm run buildProdIntegrationCLI --intg=${configToIntNames[key]}`,
(err, stdout) => {
if (err) console.log(err);
if (err)
logger.error(
`== Error occured while building ${configToIntNames[key]} ==`,
err
);
else {
console.log(stdout);
logger.debug(
`== build completed for ${configToIntNames[key]} ==`,
stdout
);
}
}
);
Expand Down

0 comments on commit 8ed9383

Please sign in to comment.