Skip to content

Commit

Permalink
prettier: avoid creating empty node_modules/.cache
Browse files Browse the repository at this point in the history
prettier resolves its cache location by default to a file under
node_modules/.cache/prettier. And even when prettier cache is
disabled (by default) the directory for storing the cache file is still
created.

This commit removes the creation of that empty directory when formatting
files using the fix:format:prettier task.
  • Loading branch information
nikobockerman committed Dec 23, 2024
1 parent a70dea8 commit 441d31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"check:npm:dedupe": "npm find-dupes",
"check:prettier": "prettier --check .",
"check:renovateconfig": "npx --package=renovate -- renovate-config-validator --strict",
"fix:prettier": "prettier --write ."
"fix:prettier": "prettier --write --cache-location .prettiercache ."
},
"private": true,
"engines": {
Expand Down

0 comments on commit 441d31e

Please sign in to comment.