TLDR: Can we support reading WIREIT_LOGGER from package.json#config? For example:
{
"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:
{
"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.