]> git.ardis.lu - csvio/commitdiff
Pin Node.js and npm versions in `devEngines`
authorArdis Lu <ardisglu@gmail.com>
Fri, 5 Sep 2025 06:10:17 +0000 (23:10 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 5 Sep 2025 06:10:17 +0000 (23:10 -0700)
`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

.node-version
npm/prepack.js
package.json

index f01a1a00dc2b4491ecabc1d5d68ebf7d4b703210..24ffec1db1e2640b725943904f0df220cd12579f 100644 (file)
@@ -1 +1 @@
-24.6.0
\ No newline at end of file
+24.7.0
\ No newline at end of file
index 7f5b176a382d7aca3b042422cd146c347bbdbb5a..f9b40e2ef129fb51d996e4d66794b7ee0856eb4b 100644 (file)
@@ -27,6 +27,7 @@ else {
     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');
 }
index 3010dcb04ffb394ef6a2e1c4cd2c8993929330db..d58c3c286c427143005f7cedc0c9cfba0275e562 100644 (file)
   "engines": {
     "node": ">=20"
   },
+  "devEngines": {
+    "runtime": {
+      "name": "node",
+      "version": "24.7.0"
+    },
+    "packageManager": {
+      "name": "npm",
+      "version": "11.6.0"
+    }
+  },
   "files": [
     "./types/*",
     "./src/*"
This page took 0.043088 seconds and 4 git commands to generate.