Skip to content

Don't display internal libs in the output of the deps command #3244

@infomiho

Description

@infomiho

Based on this comment #2989 (comment)

We include the internal libs (WaspLibs) in the output of the deps command.

This is problematic because we tell users in the deps command output:

You can import and use these directly in the code as if you specified them yourself

which implies that Wasp libs are fair game.

This happens because deps reuses the same function (npmDepsForWasp) that's used internally in the Generator to generate the package.json for server and web-app.

We should find a way to decouple the deps command and the Generator. We probably need a new concept of "user usable framework deps" and "internal framework deps".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglibs migrationTasks related to migrating code from templates to standalone libs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions