diff --git a/tools/js-sdk-release-tools/src/hlc/generateMgmt.ts b/tools/js-sdk-release-tools/src/hlc/generateMgmt.ts index fb48064b583..3d8b4e59448 100644 --- a/tools/js-sdk-release-tools/src/hlc/generateMgmt.ts +++ b/tools/js-sdk-release-tools/src/hlc/generateMgmt.ts @@ -105,10 +105,10 @@ export async function generateMgmt(options: { } } - logger.logGreen(`rush update`); - execSync('rush update', {stdio: 'inherit'}); - logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); - execSync(`rush build -t ${packageName}`, {stdio: 'inherit'}); + logger.logGreen(`node common/scripts/install-run-rush.js update`); + execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'}); + logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); + execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'}); logger.logGreen('Generating Changelog and Bumping Version...'); let changelog: Changelog | undefined; if (!options.skipGeneration) { diff --git a/tools/js-sdk-release-tools/src/llc/generateRLCInPipeline/generateRLCInPipeline.ts b/tools/js-sdk-release-tools/src/llc/generateRLCInPipeline/generateRLCInPipeline.ts index a869d4a6178..c4225f60944 100644 --- a/tools/js-sdk-release-tools/src/llc/generateRLCInPipeline/generateRLCInPipeline.ts +++ b/tools/js-sdk-release-tools/src/llc/generateRLCInPipeline/generateRLCInPipeline.ts @@ -224,11 +224,11 @@ export async function generateRLCInPipeline(options: { } } - logger.logGreen(`rush update...`); - execSync('rush update', {stdio: 'inherit'}); - logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); + logger.logGreen(`node common/scripts/install-run-rush.js update...`); + execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'}); + logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); // To build generated codes except test and sample, we need to change tsconfig.json. - execSync(`rush build -t ${packageName}`, {stdio: 'inherit'}); + execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'}); logger.logGreen(`node common/scripts/install-run-rush.js pack --to ${packageName} --verbose`); execSync(`node common/scripts/install-run-rush.js pack --to ${packageName} --verbose`, {stdio: 'inherit'}); if (!options.skipGeneration) { diff --git a/tools/js-sdk-release-tools/src/llc/generateRLCInTerminal/generateRLCInTerminal.ts b/tools/js-sdk-release-tools/src/llc/generateRLCInTerminal/generateRLCInTerminal.ts index 9a14d32ec5f..7519d042160 100644 --- a/tools/js-sdk-release-tools/src/llc/generateRLCInTerminal/generateRLCInTerminal.ts +++ b/tools/js-sdk-release-tools/src/llc/generateRLCInTerminal/generateRLCInTerminal.ts @@ -22,12 +22,12 @@ export async function generateCodes(sdkRepo: string, packagePath: string, packag export async function buildGeneratedCodes(sdkrepo: string, packagePath: string, packageName: string) { shell.cd(sdkrepo); - logger.logGreen(`rush update`); - execSync('rush update', {stdio: 'inherit'}); - logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); + logger.logGreen(`node common/scripts/install-run-rush.js update`); + execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'}); + logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`); // To build generated codes except test and sample, we need to change tsconfig.json. changeConfigOfTestAndSample(packagePath, ChangeModel.Change, SdkType.Rlc); - execSync(`rush build -t ${packageName}`, {stdio: 'inherit'}); + execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'}); changeConfigOfTestAndSample(packagePath, ChangeModel.Revert, SdkType.Rlc); shell.cd(packagePath); logger.logGreen(`Generate changelog`);