Skip to content

Only include lib dependencies in package #4716

@Rich-Harris

Description

@Rich-Harris

Describe the problem

Moving #2884 (comment) into its own issue. If a repo contains both an app and a package, it's quite possible for package.json to contain dependencies that are only relevant to the app. These get copied into package/package.json on svelte-kit package.

Describe the proposed solution

It'd be nice if the generated package.json only included the dependencies that were referenced in lib.

Alternatives considered

Give users manual control over the package.json. Would make a good all-purpose escape hatch, but is very much a case of forcing the human to do the computer's job.

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions