Skip to content

Dependency audit: Move dev only dependencies to devDependencies #561

@0xMurage

Description

@0xMurage

Summary

I have noticed that the production bundle includes packages that are only used during development.

Additional context

I propose:

  • Moving cosmiconfig and @types/debug from dependencies to devDependencies.
  • Removing @types/pg and setting it as a peerDependency. This way it is only installed by user that requires this type definition for their own TypeScript projects, but it does not get pulled into the production dependency graph.

With these changes, I hope it will result in a leaner, more efficient package for consumers of the library.

I have also notices similar behavior with the graphile-config package which also includes not so useful dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions