Skip to content

Commit

Permalink
breaking: update Node minimum version to 18 (#1986)
Browse files Browse the repository at this point in the history
* chore (doctor): update Node minimum version to 18

* chore (doctor): update Node minimum version to 18

* chore: update lockfile

---------

Co-authored-by: shubham0142 <[email protected]>
Co-authored-by: szymonrybczak <[email protected]>
  • Loading branch information
3 people authored Jul 17, 2023
1 parent 8616286 commit be7e6e2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
[
require.resolve('@babel/preset-env'),
{
targets: {node: '16'},
targets: {node: '18'},
useBuiltIns: 'entry',
corejs: '2.x',
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@react-native-community/eslint-config": "^2.0.0",
"@types/glob": "^7.1.1",
"@types/jest": "^26.0.15",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/node-fetch": "^2.3.7",
"@types/readable-stream": "^2.3.0",
"@types/rimraf": "^3.0.2",
Expand Down Expand Up @@ -59,7 +59,7 @@
"typescript": "^4.9.5"
},
"resolutions": {
"@types/node": "^16.0.0"
"@types/node": "^18.0.0"
},
"lint-staged": {
"./packages/**/*.ts": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-doctor/src/tools/versionRanges.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
// Common
NODE_JS: '>= 16',
NODE_JS: '>= 18',
YARN: '>= 1.10.x',
NPM: '>= 4.x',
RUBY: '>= 2.6.10',
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@react-native-community/cli-types": "12.0.0-alpha.7",
"@types/lodash": "^4.14.149",
"@types/mime": "^2.0.1",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/node-fetch": "^2.5.5",
"@types/shell-quote": "^1.7.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"engineStrict": true,
"engines": {
"node": ">=16"
"node": ">=18"
},
"jest": {
"testEnvironment": "node"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3183,10 +3183,10 @@
"@types/node" "*"
form-data "^3.0.0"

"@types/node@*", "@types/node@^16.0.0":
version "16.18.12"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.12.tgz#e3bfea80e31523fde4292a6118f19ffa24fd6f65"
integrity sha512-vzLe5NaNMjIE3mcddFVGlAXN1LEWueUsMsOJWaT6wWMJGyljHAWHznqfnKUQWGzu7TLPrGvWdNAsvQYW+C0xtw==
"@types/node@*", "@types/node@^18.0.0":
version "18.16.19"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.19.tgz#cb03fca8910fdeb7595b755126a8a78144714eea"
integrity sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==

"@types/normalize-package-data@^2.4.0":
version "2.4.0"
Expand Down

0 comments on commit be7e6e2

Please sign in to comment.