Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

enforce-package-updates

1.1.0 • Public • Published

# enforce-package-updates (epu)

Build Status

NPM

Enforce package updates on node module or app. Keeps your app always up to date with latest packages. Provides a config to ignore semver.

Install

npm install enforce-package-updates --save-dev

Usage

Add it to your pretest or precommit package.json

"scripts": {
  "pretest": "epu"
}

Options

You can create file called epu-config.json in your root epu-config.json

ignoreSemver

options are major, minor, patch and nonSemver

Following example doesn't enforce upgrading major packages.

{
  "ignoreSemver": "major"
}

Following example doesn't enforce upgrading major, minor packages but enforces patches.

{
  "ignoreSemver": ["major", "minor"]
}

ignoreModules

list of module names to be ignored.

Following example ignores chai, prettier, eslint-plugin-prettier

{
  "ignoreModules": ["chai", "prettier", "eslint-plugin-prettier"]
}

ignoreDependencies

This enable to ignore all dependencies. Enforce only on devDependencies. Default value is false. Following exmaple ignore all dependencies

{
  "ignoreDependencies": true
}

ignoreDevDependencies

This enable to ignore all dev dependencies. Enforce only on dependencies. Default value is false. Following exmaple ignore all devDependencies

{
  "ignoreDevDependencies": true
}

checkModuleswithName

Enforces only on certain packages with specified name. Especially useful if you use namespace packages Following example only enforces updates on packes including @babel

{
  "checkModuleswithName": "@babel"
}

Make Requests here for new features or fixing bugs https://github.com/svenkatreddy/enforce-package-updates/pulls

Install

npm i enforce-package-updates

DownloadsWeekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

19 kB

Total Files

9

Last publish

Collaborators

  • avatar