workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: keep json files in `node_modules/.cache/wrangler` at another location

Open harryzcy opened this issue 2 years ago • 1 comments

Describe the solution

Right now, the cached files like node_modules/.cache/wrangler/pages.json is used for tracking project selections. But whenever I do npm ci, the cached files get deleted, thus prompting me to select the project again.

Can you keep the cache at a different location? Like I see there's a directory .wrangler. What is that directory for? Can it be used for cache instead?

harryzcy avatar Nov 12 '23 09:11 harryzcy

@harryzcy thank you for submitting this feature request. I believe this should match up with the current Workers experience, which does store temporary files in .wrangler. We have a handful of other cache-related items and should be able to fix this as part of that work.

admah avatar Feb 28 '24 20:02 admah