Skip to content

matiasah/npm-dependency-exclusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm-dependency-exclusion

This is a module for excluding dependencies in package-lock.json. It finds references to unwanted dependencies and removes them from inclusions.

Usage in package.json

You need to define a exclusions property containing the name of the excluded dependencies in your package.json:

{
  "name": "npm-dependency-exclusion",
  "version": "1.0.0",
  "description": "NPM utility command to exclude dependencies",
  "dependencies": {},
  "exclusions": {
    "lodash": "prod",
    "lodash.template": "any"
  }
}

Possible values for exclusions are prod, which removes dependencies that are required by other dependencies (but not devDependencies). And any which excludes dependencies from both dependencies and devDependencies.

CLI tool

Run the following command in the folder that contains your package.json file.

npx npm-dependency-exclusion

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published