Replies: 3 comments
-
Yep, I’ve wished I had this for the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, that would be nice :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related #1324 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the feature you'd like to request
It would be really nice to be able to specify all options via environmental variables. For example, I would like to be able to configure
--cache-dir
or--concurrency
in CI (which I maintain) without adding more configuration toturbo.json
orpackage.json
(which are maintained by developers). This will also allow developers to have some unique configurations but still sharepackage.json
with the same commands. Also, setting env vars is much easier than constructing cli options and can greatly simplify scripting.Describe the solution you'd like
I think thank npm approach is very convenient and because options in turbo are "flat" they can simply be translated to env vars with
TURBO_
prefix. For example:--filter
->TURBO_FILTER
--no-cache
->TURBO_NO_CACHE
--continue
->TURBO_CONTINUE
This also aligns with existing variables (
TURBO_FORCE
,TURBO_TOKEN
etc) which do exactly what this request is about.Describe alternatives you've considered
We can add multiple commands to
package.json
like this:But this causes duplicated options if we want to share them, clutters
package.json
and makes scripting more difficult if we want to compute some options on the fly and can't hardcode them.Beta Was this translation helpful? Give feedback.
All reactions