Skip to content

Skip pesky NodeJS dependencies with ease

License

Notifications You must be signed in to change notification settings

favware/skip-dependency

Repository files navigation

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"
  }
}