1.0.2 • Published 3 years ago
engine-version v1.0.2
Engine-Version
Check and require specific installed versions of instruments for developing
Usage
- Install:
npm i -D engine-version
- Set in your
package.json
the required versions:
{
"engines": {
"node": ">=10 <10.2.0",
"npm": "~7",
"git": "*",
"pm2": "*",
"mysql": "*",
"mongo": "*"
}
}
All programs version of which will be checked must contain the --version
option
- Create 'pre' or 'post' scripts in your
package.json
:
{
"scripts": {
"postinstall": "engine-version",
"prestart": "engine-version",
"prebuild": "engine-version"
}
}