covector icon indicating copy to clipboard operation
covector copied to clipboard

Ability to use shell

Open rajivshah3 opened this issue 4 years ago • 0 comments
trafficstars

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
        },
      ],

rajivshah3 avatar May 05 '21 18:05 rajivshah3