Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
/ keep-updated Public archive

Hassle-free dependency updates

License

Notifications You must be signed in to change notification settings

public-js/keep-updated

Repository files navigation

@public-js/keep-updated

Build Version Downloads Size

Codacy LGTM Codecov Code Climate

Hassle-free dependency updates


Installing

Add the package to your project by running:

npm i -D @public-js/keep-updated

Add the following array to your package.json:

"keepUpdated": []

Populate the array with desired packages either manually or by running npx @public-js/keep-updated add package1 package2.

Execute it directly:

npx @public-js/keep-updated update --audit-fix

or add the following to your root package.json file:

"scripts": {
  "keep-updated": "keep-updated update --audit-fix"
}

Run npx @public-js/keep-updated --help to find out about other options.

How does it work

The package will identify your preferred manager based on the lock-file, fetch all the dependencies listed in the keepUpdated (or keep-updated) array and install the latest desired versions of the listed packages.

Then all changes, except sorting, made to the package.json will be reverted retaining only lock-file changes.

You might want to include this package as an additional step to your CI pipeline e.g. prior to merging branches into main.

Resources

License

MIT, full license text. Read more about it on TLDRLegal.