[Feature request] Supports read WIREIT_LOGGER from package.json
- Dominant language
- TypeScript
- Stars
- 6.4k
- Forks
- 128
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**TLDR:** Can we support reading `WIREIT_LOGGER` from `package.json#config`? For example:
```json
{
"config": {
"WIREIT_LOGGER": "simple"
}
}
```
---
**Context:**
We use wireit in a large monorepo and it helps a lot. One issue:
We have many scripts in `package.json`, and many need logging. To get correct output, we need `WIREIT_LOGGER=simple`.
I know we can add it to `.zshrc` or similar, but we have many developers, including temporary contributors. I don't want to repeatedly explain why and how.
**Current workaround:**
```json
{
"scripts": {
"foo": "WIREIT_LOGGER=simple npm run foo:wireit",
"foo:wireit": "wireit"
},
"wireit": {
"foo:wireit": {
"command": "do something"
}
}
}
```
To run `foo`, we add an extra `foo:wireit`. This worked initially, but as scripts grew, it added clutter. Reading from `config` would be ideal.
Contributor guide
Assessment
This issue has not been assessed yet.