jbolda / jbolda/covector

Ability to use shell

Open
#199 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
89
Forks
14
Avg merge
6h 9m
Merged PRs (30d)
4

Description

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:

```json
"prepublish": [
{
"command": "do-something --token $SOME_TOKEN",
"shell": true
},
],
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the prepublish command handling and its use of execa.command(). Check how command configuration is parsed, then add coverage for a prepublish entry with shell enabled and an environment-variable command. Done means the documented configuration runs the command through a shell without relying on the pipe workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.