Skip to content

Commit 722de3d

Browse files
Update apps/rush-lib/src/scripts/install-run-rush.ts
Co-Authored-By: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 6b5f578 commit 722de3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

52+
// Detect if this script was directly invoked, or if the install-run-rushx script was invokved to select the
53+
// appropriate binary inside the rush package to run
5254
const scriptName: string = path.basename(scriptPath);
5355
const bin: string = scriptName.toLowerCase() === 'install-run-rushx.js' ? 'rushx' : 'rush';
5456
if (!nodePath || !scriptPath) {

0 commit comments

Comments
 (0)