Closed znck closed 5 years ago
Sounds reasonable, looks like some of the cool kids are using it, but it looks like there are objections? https://github.com/avajs/find-cache-dir/issues/1 https://github.com/facebook/jest/pull/2303
Can be overriden with cacheRoot
option, but at that point user is already involved and both benefits are moot.
What I'm suggesting is an invisible cache directory, which exists but you don't care about it.
We're doing this in microbundle now
It's common practice to use
node_modules/.cache/[namespace]
as cache directory.Benefits of having a cache directory in
node_modules
:.gitignore
asnode_modules
is always ignored.