From be91130f184f04c6e7bb9ff18222aba2ef2f96f6 Mon Sep 17 00:00:00 2001 From: michael faith Date: Sun, 16 Feb 2025 15:14:43 -0600 Subject: [PATCH] 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. --- package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index 95fffa700a..8e5dae3f94 100644 --- a/package.json +++ b/package.json @@ -106,9 +106,6 @@ "web-streams-polyfill": "^3.1.1", "yargs": "^15.3.1" }, - "devEngines": { - "node": "16.x || 18.x || 20.x || 22.x" - }, "jest": { "testRegex": "/scripts/jest/dont-run-jest-directly\\.js$" }, @@ -122,7 +119,7 @@ "lint": "node ./scripts/tasks/eslint.js", "lint-build": "node ./scripts/rollup/validate/index.js", "extract-errors": "node scripts/error-codes/extract-errors.js", - "postinstall": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json && node ./scripts/flow/createFlowConfigs.js", + "postinstall": "node ./scripts/flow/createFlowConfigs.js", "test": "node ./scripts/jest/jest-cli.js", "test-stable": "node ./scripts/jest/jest-cli.js --release-channel=stable", "test-www": "node ./scripts/jest/jest-cli.js --release-channel=www-modern",