force-latest
v0.2.0-rc1
Published
Force latest package versions (those marked "latest")
Downloads
119
Maintainers
Readme
Force Latest Versions
Force latest npm package versions.
A CLI utility to force the installation of the latest package version of all packages in package.json
marked as latest
. Packages with any other version specification will be ignored. devDependencies
is only parsed if NODE_ENV
is not "production".
Usage
Run the executable by entering force-latest
. This can be added to a package's manifest as a postinstall
script:
{
"name": "MyPackage",
"scripts": {
"postinstall": "force-latest"
},
"dependencies": {
"some-library": "latest",
"other": "^1.2.3"
},
"devDependencies": {
"force-latest": "*"
}
}
In this example, some-library
will always be checked after an npm install
is run. If it is not at the latest version as specified on npmjs.com, the latest version will be installed. The library other
will not be checked or updated.