chore: remove `devEngines` declaration in root package (#32398)
This change removes the `devEngines` declaration in the root package. It didn't match the package.json spec and in npm 10.9.0 (released in October), a breaking change was introduced that checks the `devEngines` property. This causes `npm pack` calls to fail, due to the malformed `devEngines`. Since there's already an `.nvmrc` defined in the repo, and no strong need to enforce a specific node version for local development, this removes the declaration altogether.
michael faith committed
Feb 16, 2025 at 15:14 UTC
be91130f184f04c6e7bb9ff18222aba2ef2f96f6
1 file changed
+1
-4
package.json
+1
-4
@@ -106,9 +106,6 @@
106
"web-streams-polyfill": "^3.1.1",
107
"yargs": "^15.3.1"
108
},
109
- "devEngines": {
110
- "node": "16.x || 18.x || 20.x || 22.x"
111
- },
109
"jest": {
110
"testRegex": "/scripts/jest/dont-run-jest-directly\\.js$"
111
},
@@ -122,7 +119,7 @@
119
"lint": "node ./scripts/tasks/eslint.js",
120
"lint-build": "node ./scripts/rollup/validate/index.js",
121
"extract-errors": "node scripts/error-codes/extract-errors.js",
125
- "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js",
122
+ "postinstall": "node ./scripts/flow/createFlowConfigs.js",
123
"test": "node ./scripts/jest/jest-cli.js",
124
"test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable",
125
"test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",