Skip to content

Commit cf5aeb5

Browse files
committed
incorporated commit suggestions by bsiegel
1 parent 87f47ce commit cf5aeb5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/rush-lib/src/scripts/install-run-rush.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,23 @@ function run(): void {
4949
...packageBinArgs /* [build, --to, myproject] */
5050
]: string[] = process.argv;
5151

52-
const scriptName = path.basename(scriptPath);
53-
const bin = scriptName.toLowerCase() === 'install-run-rushx.js' ? 'rushx' : 'rush';
52+
const scriptName: string = path.basename(scriptPath);
53+
const bin: string = scriptName.toLowerCase() === 'install-run-rushx.js' ? 'rushx' : 'rush';
5454
if (!nodePath || !scriptPath) {
5555
throw new Error('Unexpected exception: could not detect node path or script path');
5656
}
5757

5858
if (process.argv.length < 3) {
59-
console.log('Usage: ${scriptName} <command> [args...]');
60-
console.log('Example: ${scriptName} build --to myproject');
59+
console.log(`Usage: ${scriptName} <command> [args...]`);
60+
console.log(`Example: ${scriptName} build --to myproject`);
6161
process.exit(1);
6262
}
6363

6464
runWithErrorAndStatusCode(() => {
6565
const version: string = getRushVersion();
6666
console.log(`The rush.json configuration requests Rush version ${version}`);
6767

68-
return installAndRun(PACKAGE_NAME, version, 'rush', packageBinArgs);
68+
return installAndRun(PACKAGE_NAME, version, bin, packageBinArgs);
6969
});
7070
}
7171

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "./install-run-rush.ts";
1+
import './install-run-rush';

0 commit comments

Comments
 (0)