Replies: 4 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
-
|
Bump, we would like to be able to do this for concurrency. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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-diror--concurrencyin CI (which I maintain) without adding more configuration toturbo.jsonorpackage.json(which are maintained by developers). This will also allow developers to have some unique configurations but still sharepackage.jsonwith 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_CONTINUEThis also aligns with existing variables (
TURBO_FORCE,TURBO_TOKENetc) which do exactly what this request is about.Describe alternatives you've considered
We can add multiple commands to
package.jsonlike this:But this causes duplicated options if we want to share them, clutters
package.jsonand 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