Better cache handling of multiple (but different) prettier calls #13010
Labels
area:cli
Issues with Prettier's Command Line Interface
type:enhancement
A potential new feature to be added, or an improvement to how we print something
Milestone
Environments:
After discussion #12800 (comment) you moved from default cache location
.prettiercache
(eslint style) tonode_modules/.cache/prettier
(ava style).In #12800 (comment) you needed a use case for a
--cache-location
CLI param.I have a script which formats and compiles many Visual Studio projects which shares one
node_modules
dir.Compiling one project boosts the prettier call from 15s to 2s. 🎉
But every project has different files (surprise :-) so every prettier call finds new files and rebuilds (!)
node_modules/.cache/prettier
from scratch (which renders the cache useless in many situations).It would be better if prettier would
.prettiercache
to be able to have a cache file per vs project or--cache-location
CLI param so I can configure the cache in my build scriptcc @sosukesuzuki @fisker @7rulnik
The text was updated successfully, but these errors were encountered: