From 7e064f971bccbdd230f69451ffe3b1bbe1762b00 Mon Sep 17 00:00:00 2001 From: Ryan Waskiewicz Date: Wed, 21 Jun 2023 05:35:51 -0700 Subject: [PATCH] chore(package): add engines to package.json (#337) this commit adds an engines field to the package to explicitly state what versions of node/npm that are currently supported. the current version of the package supports stencil v2 and up - stencil v2 supported node 12+, which is the justification for such a low version of node/npm in these fields --- package-lock.json | 4 ++++ package.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/package-lock.json b/package-lock.json index d4ca345..3238506 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,10 @@ "ts-jest": "^26.4.4", "typescript": "^4.9.4" }, + "engines": { + "node": ">=12.0.0", + "npm": ">=6.0.0" + }, "peerDependencies": { "@stencil/core": ">=2.0.0 || >=3.0.0-beta.0 || >= 4.0.0-beta.0 || >= 4.0.0" } diff --git a/package.json b/package.json index bc4f4fe..f917fbb 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,10 @@ "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "engines": { + "node": ">=12.0.0", + "npm": ">=6.0.0" + }, "files": [ "dist/" ],