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",