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'});

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);
}

Fix afterscript used in sdk automation pipeline
Fix afterscript used in sdk automation pipeline
