[RFC] Move cache outside of node_modules
#7497
Replies: 7 comments
-
I think
|
Beta Was this translation helpful? Give feedback.
-
Agree with @fz6m keep the turbo cache in the project folder please |
Beta Was this translation helpful? Give feedback.
-
Some thoughts, I'd prefer a .cache/turbo. But .turbo is fantastic |
Beta Was this translation helpful? Give feedback.
-
I would prefer the root of the project or an optional to configure where it should go |
Beta Was this translation helpful? Give feedback.
-
I would opt for the |
Beta Was this translation helpful? Give feedback.
-
Would be nice to specify the cache directory in turbo.json, in a similar way that yarn/npm allow you to change the package cache location in their config files. Seems like this would be a reasonable way to implement the feature without causing a breaking change. For caching in CI I've had to put |
Beta Was this translation helpful? Give feedback.
-
Shipped in 2.0: #8126 |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
node_modules
is a bad default place for the cache because most CI/CDs will blow outnode_modules
whenever the lockfile changes. The cache also currently grows in an unbounded manner.Describe the solution you'd like
Use
tmp
directoryOn macOS and Linux consider using
tmp
.Use
.turbo
at the rootHybrid of both?
Use
tmp
on macOS when run in interactive shell, use .turbo in CI?Describe alternatives you've considered
n/a
Beta Was this translation helpful? Give feedback.
All reactions