Skip to content

Ability to use shell #199

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

Open
rajivshah3 opened this issue May 5, 2021 · 0 comments
Open

Ability to use shell #199

rajivshah3 opened this issue May 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rajivshah3
Copy link
Contributor

We'd like to be able to use environment variables in our prepublish command, but this seems to require shell: true to be passed to execa.command(). Currently, we're using a workaround that sets shell: true when a | is found in the command. It would be great if we could enable it with something like this:

"prepublish": [
        {
          "command": "do-something --token $SOME_TOKEN",
          "shell": true
        },
      ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants