const basePath = process.argv[2];
require("child_process").execSync(`npm install --prefix generator`, {
  stdio: "inherit",
});
require("child_process").execSync(
  `npm run postprocessor ${basePath} --prefix generator`,
  { stdio: "inherit" }
);
try {
  require("child_process").execSync(`npm install --prefix tools`, {
    stdio: "inherit",
  });
  require("child_process").execSync(`npm run test --prefix tools`, {
    stdio: "inherit",
  });
} catch (e) {
  console.error(e);
}

const basePath = process.argv[2];
require("child_process").execSync(`npm install --prefix generator`, {stdio: 'inherit'});
require("child_process").execSync(`npm run postprocessor ${basePath} --prefix generator`, {stdio: 'inherit'});
require("child_process").execSync(`npm install --prefix tools`, {stdio: 'inherit'});
require("child_process").execSync(`npm run test --prefix tools`, {stdio: 'inherit'});

--- 
+++ 
@@ -1,18 +1,5 @@
 const basePath = process.argv[2];
-require("child_process").execSync(`npm install --prefix generator`, {
-  stdio: "inherit",
-});
-require("child_process").execSync(
-  `npm run postprocessor ${basePath} --prefix generator`,
-  { stdio: "inherit" }
-);
-try {
-  require("child_process").execSync(`npm install --prefix tools`, {
-    stdio: "inherit",
-  });
-  require("child_process").execSync(`npm run test --prefix tools`, {
-    stdio: "inherit",
-  });
-} catch (e) {
-  console.error(e);
-}
+require("child_process").execSync(`npm install --prefix generator`, {stdio: 'inherit'});
+require("child_process").execSync(`npm run postprocessor ${basePath} --prefix generator`, {stdio: 'inherit'});
+require("child_process").execSync(`npm install --prefix tools`, {stdio: 'inherit'});
+require("child_process").execSync(`npm run test --prefix tools`, {stdio: 'inherit'});
Fix afterscript used in sdk automation pipeline
