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.
Summary
I have noticed that the production bundle includes packages that are only used during development.
Additional context
I propose:
cosmiconfigand@types/debugfrom dependencies to devDependencies.@types/pgand 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-configpackage which also includes not so useful dependencies.