From 1d6e3932248a68f935f16eed768f3e5c29810cad Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Mon, 31 Jul 2023 15:59:58 +0000 Subject: [PATCH 1/2] update node.engines field in package.json --- constraints.pro | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constraints.pro b/constraints.pro index a892c67..9d2240a 100644 --- a/constraints.pro +++ b/constraints.pro @@ -90,8 +90,8 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, DependencyType) :- workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType), DependencyType == 'devDependencies'. -% The package must specify a minimum Node version of 16. -gen_enforced_field(WorkspaceCwd, 'engines.node', '>=16.0.0'). +% The package must specify the expected node version contraint. +gen_enforced_field(WorkspaceCwd, 'engines.node', '^16.20 || ^18.16 || >=20'). % The package is public. gen_enforced_field(WorkspaceCwd, 'publishConfig.access', 'public'). diff --git a/package.json b/package.json index c71c555..b257a75 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ }, "packageManager": "yarn@3.2.1", "engines": { - "node": ">=16.0.0" + "node": "^16.20 || ^18.16 || >=20" }, "publishConfig": { "access": "public", From 83802abe39d564e672aec67c3720f240afcf11d2 Mon Sep 17 00:00:00 2001 From: legobeat <109787230+legobeat@users.noreply.github.com> Date: Tue, 1 Aug 2023 01:07:19 +0900 Subject: [PATCH 2/2] Update constraints.pro Co-authored-by: Elliot Winkler --- constraints.pro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constraints.pro b/constraints.pro index 9d2240a..a0400fd 100644 --- a/constraints.pro +++ b/constraints.pro @@ -90,7 +90,7 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, DependencyType) :- workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType), DependencyType == 'devDependencies'. -% The package must specify the expected node version contraint. +% The package must specify the expected node version constraint. gen_enforced_field(WorkspaceCwd, 'engines.node', '^16.20 || ^18.16 || >=20'). % The package is public.