Skip to content

Commit 34de2dc

Browse files
authored
Replace Global Rush (#8820)
1 parent b444030 commit 34de2dc

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

tools/js-sdk-release-tools/src/hlc/generateMgmt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ export async function generateMgmt(options: {
105105
}
106106
}
107107

108-
logger.logGreen(`rush update`);
109-
execSync('rush update', {stdio: 'inherit'});
110-
logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
111-
execSync(`rush build -t ${packageName}`, {stdio: 'inherit'});
108+
logger.logGreen(`node common/scripts/install-run-rush.js update`);
109+
execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'});
110+
logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
111+
execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'});
112112
logger.logGreen('Generating Changelog and Bumping Version...');
113113
let changelog: Changelog | undefined;
114114
if (!options.skipGeneration) {

tools/js-sdk-release-tools/src/llc/generateRLCInPipeline/generateRLCInPipeline.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,11 @@ export async function generateRLCInPipeline(options: {
224224
}
225225
}
226226

227-
logger.logGreen(`rush update...`);
228-
execSync('rush update', {stdio: 'inherit'});
229-
logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
227+
logger.logGreen(`node common/scripts/install-run-rush.js update...`);
228+
execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'});
229+
logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
230230
// To build generated codes except test and sample, we need to change tsconfig.json.
231-
execSync(`rush build -t ${packageName}`, {stdio: 'inherit'});
231+
execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'});
232232
logger.logGreen(`node common/scripts/install-run-rush.js pack --to ${packageName} --verbose`);
233233
execSync(`node common/scripts/install-run-rush.js pack --to ${packageName} --verbose`, {stdio: 'inherit'});
234234
if (!options.skipGeneration) {

tools/js-sdk-release-tools/src/llc/generateRLCInTerminal/generateRLCInTerminal.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ export async function generateCodes(sdkRepo: string, packagePath: string, packag
2222

2323
export async function buildGeneratedCodes(sdkrepo: string, packagePath: string, packageName: string) {
2424
shell.cd(sdkrepo);
25-
logger.logGreen(`rush update`);
26-
execSync('rush update', {stdio: 'inherit'});
27-
logger.logGreen(`rush build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
25+
logger.logGreen(`node common/scripts/install-run-rush.js update`);
26+
execSync('node common/scripts/install-run-rush.js update', {stdio: 'inherit'});
27+
logger.logGreen(`node common/scripts/install-run-rush.js build -t ${packageName}: Build generated codes, except test and sample, which may be written manually`);
2828
// To build generated codes except test and sample, we need to change tsconfig.json.
2929
changeConfigOfTestAndSample(packagePath, ChangeModel.Change, SdkType.Rlc);
30-
execSync(`rush build -t ${packageName}`, {stdio: 'inherit'});
30+
execSync(`node common/scripts/install-run-rush.js build -t ${packageName}`, {stdio: 'inherit'});
3131
changeConfigOfTestAndSample(packagePath, ChangeModel.Revert, SdkType.Rlc);
3232
shell.cd(packagePath);
3333
logger.logGreen(`Generate changelog`);

0 commit comments

Comments
 (0)