`devEngines` is the standardized field for this purpose [0], with varying levels of tooling support. The duplicative and non-standard `.node-version` file will eventually be removed once tooling support for `devEngines` is more widespread.
[0] https://github.com/openjs-foundation/package-metadata-interoperability-collab-space
-24.6.0
\ No newline at end of file
+24.7.0
\ No newline at end of file
await copyFile('./package.json', './package.backup.json');
}
execSync('npm run types');
+ execSync('npm pkg delete devEngines');
execSync('npm pkg delete scripts');
execSync('npm pkg delete devDependencies');
}
"engines": {
"node": ">=20"
},
+ "devEngines": {
+ "runtime": {
+ "name": "node",
+ "version": "24.7.0"
+ },
+ "packageManager": {
+ "name": "npm",
+ "version": "11.6.0"
+ }
+ },
"files": [
"./types/*",
"./src/*"