-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] Refactor rush-sdk to expose a loader API. #3212
base: main
Are you sure you want to change the base?
Conversation
|
||
installAndRunRushStderrContent = installAndRuhRushProcess.stderr; | ||
if (installAndRuhRushProcess.status !== 0) { | ||
throw new Error(`The ${RUSH_LIB_NAME} package failed to install`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error gets immediately discarded by the catch below.
Co-authored-by: David Michon <[email protected]>
installAndRunRushJSPath, | ||
'--help' | ||
]); | ||
terminal.write(installAndRuhRushProcess.stdout); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: rush --help
lists all rush commands information, but the idea is just trigger the install-run
logic behind. I can see this stdout would be pretty annoying, so it's intentionaly removed in original implementation.
Summary
Implements the design in #3209
How it was tested
Moved the test to its own project and verified that it still works.