favware / skip-dependency

Skip pesky NodeJS dependencies with ease
MIT License
20 stars 5 forks source link

Skip Dependency

Note: This is only designed to work with Yarn (v1 / v2 / v3), not NPM, nor pnpm!!!

Note2: This might work with npm and pnpm "overrides", however it is untested.

This is for when some dependency you're pulling in is forcing some other dependency you just don't like. You can use skip-dependency to force the skipping of said dependency.

Just add the following to your package.json:

{
  "resolutions": {
    "package-you-really-want-to-skip": "npm:@favware/skip-dependency@latest"
  }
}