Split dependencies in the new structure
Author: sodicCreated Dec 7, 2023Updated Sep 30, 2026
Labelsenhancementrefactoringcompilerrestructuring
[!NOTE] We should do this together with #1841
In the new structure of a Wasp project (see prototype in #1584), Wasp dependencies are split into 4 groups:
- Project and user dependencies - listed in /package.json.
- SDK dependencies - listed in /node_modules/wasp/package.json.
- Server dependencies - listed in .wasp/out/server/package.json.
- Client dependencies - listed in .wasp/out/web-app/package.json.
Identify which dependencies belong to which "project" (some dependencies might be required in multiple projects) and modify the generator to output appropriate package.json files.
Also, find a way to let the users know which dependencies in the root package.json they aren't allowed to touch.
Source: wasp-lang/wasp