specified-package-version-check
[ENGLISH] | 中文
Introduce
specified-package-version-check is a script which can check the specified package version is outdated or not, if outdated, develop env process will be exist.
For some case, e.g. our team develop ourselves eslint rules as a npm package, if we update the npm package version, we hope all of our team member must use the latest npm version.
Usage
const checkDependenceVersion = require('specified-package-version-check')
async function func() {
await checkDependenceVersion({
dependenceArr: ['axios'],
ignoreCheck: false,
onlyWarn: false,
checkAllLocalDependencies: false
})
console.log('end');
}
func()
API
| dependenceArr | dependence need to be checked | string[] | [] | 0.0.1 |
| ignoreCheck | skip check | boolean | false | 0.0.1 |
| onlyWarn | only warn when specified package outdated | boolean | false | 0.0.1 |
| checkAllLocalDependencies | check all packages version in package.json | boolean | false | 0.0.1 |