Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint against more extraneous dependencies being imported #43

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

sjdemartini
Copy link
Owner

No devDependencies should be imported in the main project without also appearing in peerDependencies. Otherwise we risk the package breaking when installed for others.

And because we publish our types with our package, even Type imports should need to be included in dependencies or peerDependencies. So type-fest should really be listed as a direct dependency (as it is for other major users of type-fest, like yup, snakecase-keys, etc., and as described here
sindresorhus/type-fest#136 (comment)).

No devDependencies should be imported in the main project without also
appearing in peerDependencies. Otherwise we risk the package breaking
when installed for others.

And because we publish our types with our package, even Type imports should
need to be included in dependencies or peerDependencies. So `type-fest`
should really be listed as a direct dependency (as it is for other major
users of type-fest, like yup, snakecase-keys, etc., and as described
here
sindresorhus/type-fest#136 (comment)).
@sjdemartini sjdemartini force-pushed the lint-for-extraneous-deps branch from fa3643e to 824eec9 Compare June 15, 2023 06:33
@sjdemartini sjdemartini merged commit d8d3f52 into main Jun 15, 2023
@sjdemartini sjdemartini deleted the lint-for-extraneous-deps branch June 15, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant