Skip to content

berickson1/noop-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

noop-package

Noop NPM Package

Description

This package is useful when you want to remove a transitive dependency from npm/yarn.

For example. Module A depends sets Module B as a dependency but doens't use it and you want to remove it from your node_modules. You can use selective dependency resolution to override a module in package.json

{
  "dependencies": {
    "moduleA": "1.0.0",
    "moduleB": "npm:[email protected]"
  },
  "resolution": {
    "moduleB": "npm:[email protected]"
  }
}

Warnings

If you override a package using selective dependency resolution, the original package will be replaced in node_modules and may cause undefined behaviour.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Noop NPM Package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published