google / google/wireit

Better error message for an empty command

Open
#315 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.4k
Forks
128
Avg merge
4d 10h
Merged PRs (30d)
4

Description

Say I have a script like:

`"script": { "lint": "npm run eslint && npm run prettier" }`

in wireit, i might do:

```
"wireit": {
"lint": {
"dependencies": [ "lint", "prettier" ],
"command": "?"
}
}
```

I tried this and get an error when I don't have a command for 'lint'. I am currently using `echo ''` which is fine.
Is there anything wrong with this approach? I wonder if there's a way to do this where the command is empty? If not could / should there be?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.