Remove package-lock.json requirement for Cloudflare Workers build cache #14385
jmooring
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, enabling the Cloudflare Workers build cache requires the presence of a
package-lock.jsonfile (or an equivalent Node lockfile) in the project root.For projects that do not rely on Node.js packages—such as certain static site generators like Hugo—this requirement introduces unnecessary friction. Developers are forced to implement awkward workarounds in their build scripts, like running
npm init -y && npm install, solely to trick the system into enabling the caching mechanism.The presence of a Node-based lockfile should not be a strict requirement for the build cache to function. The build cache should natively support non-Node projects, allowing them to utilize the caching feature without needing to generate dummy
package.jsonorpackage-lock.jsonfiles.Beta Was this translation helpful? Give feedback.
All reactions