noop-package
v1.0.0
Published
Blank package that does nothing
Downloads
15,275
Readme
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