Skip to content

Commit 7fa4a76

Browse files
atljsatya164
andauthored
feat: bump node version to 18 (#418)
### Summary This bumps the node version of the project to `v18.12.0`(18 LtS) #### Why? 1. Node.js 16 LTS is coming to end-of-life later this year. [Source](https://nodejs.org/en/blog/announcements/nodejs16-eol) 2. You are not able to install the dependencies of react native example app anymore. It raises the following error: ``` error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.18.1" ``` ### Test plan As this doesn't add any feature, we need to make sure the core functionality is not broken and all the CI checks pass. --------- Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent 2fe844a commit 7fa4a76

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.1
1+
v18

packages/create-react-native-library/src/utils/generateExampleApp.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const PACKAGES_TO_ADD_DEV = {
3838
};
3939

4040
const PACKAGES_TO_ADD_WEB = {
41-
'react-dom': '18.1.0',
42-
'react-native-web': '~0.18.9',
41+
'react-dom': '18.2.0',
42+
'react-native-web': '~0.18.10',
4343
};
4444

4545
const PACKAGES_TO_ADD_WEB_DEV = {
46-
'@expo/webpack-config': '^0.17.2',
46+
'@expo/webpack-config': '^18.0.1',
4747
'babel-loader': '^8.1.0',
4848
};
4949

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.1
1+
v18

0 commit comments

Comments
 (0)