Skip to content
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] Fix an issue where "rushx" did not pass additional parameters to the shell script #2096

Merged
merged 3 commits into from
Aug 12, 2020

Conversation

octogonz
Copy link
Collaborator

@octogonz octogonz commented Aug 12, 2020

Fixes #1232

Consider this script:

package.json

   . . .
  "scripts": {
    "build": "rm -f lib && node ./build.js"
  }
   . . .

Suppose that you invoke this command:

$ rushx build a b c --production

BEFORE this PR, the shell would execute: rm -f lib && node ./build.js

AFTER this PR, the shell will execute: rm -f lib && node ./build.js a b c --production

Ideally we want a different design, where rushx has full syntax validation and --help for every parameter. But until that ideal is realized, this PR lets people pass subcommands to their shell scripts similar to how NPM and Yarn do.

@octogonz octogonz merged commit 63288a7 into master Aug 12, 2020
@octogonz octogonz deleted the octogonz/better-rushx branch August 12, 2020 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[rush] rushx should support parameters for commands
2 participants