Skip to content

Commit

Permalink
update node.engines field in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jul 31, 2023
1 parent dc15354 commit dd57987
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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').
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"packageManager": "[email protected]",
"engines": {
"node": ">=16.0.0"
"node": "^16.20 || ^18.16 || >=20"
},
"publishConfig": {
"access": "public",
Expand Down

0 comments on commit dd57987

Please sign in to comment.