From 0501d48b812d2640910ec391fd2a54517b96c72d Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Fri, 3 Dec 2021 12:04:24 +0000 Subject: [PATCH] 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 --- package-lock.json | 3 +++ package.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/package-lock.json b/package-lock.json index 21761138c..469c5f5f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/package.json b/package.json index 3556dc516..e5cd92464 100644 --- a/package.json +++ b/package.json @@ -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",