#1595·wasp

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:

  1. Project and user dependencies - listed in /package.json.
  2. SDK dependencies - listed in /node_modules/wasp/package.json.
  3. Server dependencies - listed in .wasp/out/server/package.json.
  4. 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.