From ddba2d09c9b53e799a9fc0c005719eb27d5e9ae1 Mon Sep 17 00:00:00 2001 From: Backfighter Date: Mon, 18 Oct 2021 18:11:51 +0200 Subject: [PATCH] Indicate required node version Since the code uses optional chaining it requires node >=14 to run (https://node.green/#ES2020-features-optional-chaining-operator-----). This should be indicated in the package json. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 49a1bf9..cd65a31 100644 --- a/package.json +++ b/package.json @@ -120,5 +120,8 @@ "statements": 96, "functions": 95, "branches": 85 + }, + "engines": { + "node": ">=14" } }