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,5 +1,18 @@
 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'});
+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);
+}
Fix afterscript used in sdk automation pipeline
