`package-lock.json` churn with generated code
Author: cpreciosoCreated Jul 16, 2026Updated Oct 1, 2026
When we compile a Wasp app we do this:
- Generate the SDK
npm install- Generate the
.wasp/out/{client,server}workspaces npm installagain
If doing a fresh git clone of an existing project, the first npm install will not find the client and server workspaces, then remove all of their dependencies from the lock, and then the second will find them again and regenerate. This creates package-lock.json churn; and might upgrade dependencies in the process, which is against the reason why we have a lock in the first place.
Source: wasp-lang/wasp