ezolenko / rollup-plugin-typescript2

Rollup plugin for typescript with compiler errors.
MIT License
822 stars 71 forks source link

Move cache directory to `node_modules` #133

Closed znck closed 5 years ago

znck commented 5 years ago

It's common practice to use node_modules/.cache/[namespace] as cache directory.

Benefits of having a cache directory in node_modules:

  1. No need to update .gitignore as node_modules is always ignored.
  2. It invisible to users.
ezolenko commented 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

ezolenko commented 5 years ago

Can be overriden with cacheRoot option, but at that point user is already involved and both benefits are moot.

znck commented 5 years ago

What I'm suggesting is an invisible cache directory, which exists but you don't care about it.

ForsakenHarmony commented 5 years ago

We're doing this in microbundle now