build(npm): mandate Node.js engine version

This change mandates a particular version of Node.js when running
`npm install`. When using a version of Node.js that does not meet these
expectations, a warning will be emitted to the user to let them know
that they are using an unsupported version of Node.js

Change-Id: I3f9bcf8be483a80b5882d65b034c6655013df19f
Signed-off-by: Chris Kay <chris.kay@arm.com>
This commit is contained in:
Chris Kay 2021-12-03 12:04:24 +00:00
parent ba748f3c35
commit 0501d48b81
2 changed files with 6 additions and 0 deletions

3
package-lock.json generated
View File

@ -18,6 +18,9 @@
"husky": "^7.0.4",
"js-yaml": "^4.1.0",
"standard-version": "^9.3.2"
},
"engines": {
"node": ">=16.0.0"
}
},
"node_modules/@babel/code-frame": {

View File

@ -7,6 +7,9 @@
"postinstall": "husky install",
"release": "standard-version"
},
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",