Enforce minimum Node JS to v18 (#4897)

Summary:
Enforce minimum Node JS version to `v18` via `/package.json#engines
`

- Node JS `v16`'s EOL is `2023-09-11`:
https://nodejs.org/en/blog/announcements/nodejs16-eol

- react-native also bumped Node JS to `v18` recently https://github.com/facebook/react-native/pull/37709 (RN `0.73` will probably enforce min Node JS `v18`)

Bumps in CI via:
1. https://github.com/facebook/flipper/issues/4898

## Changelog:

[General] [Breaking] - Enforce minimum Node JS `v18`

Pull Request resolved: https://github.com/facebook/flipper/pull/4897

Test Plan: - Should pass tests & builds successfully

Reviewed By: ivanmisuno

Differential Revision: D47294577

Pulled By: passy

fbshipit-source-id: 7ba6a1b6ea6a9e42c77620dc7e0ddf7bd0c641b8
This commit is contained in:
Pranav Yadav
2023-07-17 04:44:21 -07:00
committed by Facebook GitHub Bot
parent 7cef8286f9
commit 78d56eaa70

View File

@@ -165,7 +165,7 @@
"watch": "cross-env TZ=Pacific/Pohnpei node --expose-gc --stack-trace-limit=40 ./node_modules/.bin/jest --watch"
},
"engines": {
"node": ">=16",
"node": ">=18",
"npm": "use yarn instead",
"yarn": "^1.16"
},