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

Separate package for cli and package sevm to prevent unintended subdependencies #147

Open
MbBrainz opened this issue Oct 19, 2024 · 1 comment

Comments

@MbBrainz
Copy link

MbBrainz commented Oct 19, 2024

Currently when you install sevm in your package, itll add the ansi-colors, yargs and env-paths dependencies to your lock file. This is not intentional if you are only trying to use the package and not the cli. To reduce bundle size and keep the dependency tree clean, this should be separated.

@MbBrainz
Copy link
Author

If Anyone sees this as well and wants to have a quick workaround:
If you use pnpm as a package manager, You can force pnpm to not install certain subdependencies by adding the following overrides to your root package.json:

{
"pnpm": {
   "overrides": {
      "...[other_overrides]",
      "sevm>ansi-colors": "-",
      "sevm>yargs": "-",
      "sevm>env-paths": "-"
   }
}}

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

No branches or pull requests

1 participant