1.0.10 • Published 2 years ago

del-lock-dependencies v1.0.10

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

del-lock-dependencies

Delete some dependencies in the lock file before installing dependencies in package management tools such as npm.

Installing

npm install del-lock-dependencies -D

Document

  1. In the package.json file.
ParamsDefaultOptionsExplain
dependenciesundefinedThe incoming package name will be removed from the lock file, and multiple package names are supported.
{
    "scripts":{
        "preinstall":"npx del-lock-dependencies --dependencies vue vue-router"
    }
}
  • preinstall:Indicating that a script is executed before dependencies are installed, the behavior is inconsistent between Yarn and npm. Yarn recommends using postinstall and not committing the lock file of the package that needs to be removed.
  • postinstall:It indicates that a script is executed after dependencies are installed, and the behavior is inconsistent between Yarn and npm. In npm, the lock file is created after the postinstall.
  1. Extend your own methods.
  • The parameters are the same as above.
import delLockDependencies from 'del-lock-dependencies';

delLockDependencies({
    dependencies:['vue','vue-router']
})
1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago