In the package.json should be the engine attribute, since the developers that have more projects with multi node engine can have errors when executing the project.
The example is typescript with top version 5 and node engine 12 (it is possible to have projects with this version still), when executing the project it would not transpile because it is not compatible with this version.
I think it is the best practice to add to the package version engine attribute like this:
{
"engines": {
"node": ">=16.0.0",
"npm": ">=6.0.0"
}
}
In the package.json should be the engine attribute, since the developers that have more projects with multi node engine can have errors when executing the project.
The example is typescript with top version 5 and node engine 12 (it is possible to have projects with this version still), when executing the project it would not transpile because it is not compatible with this version.
I think it is the best practice to add to the package version engine attribute like this:
{ "engines": { "node": ">=16.0.0", "npm": ">=6.0.0" } }