Skip to content

Commit e7f60eb

Browse files
committed
fix: declare supported Node.js versions
1 parent 0a29fbd commit e7f60eb

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎.changeset/modern-nodes-load.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"react-native-node-api": patch
3+
---
4+
5+
Declare the Node.js versions that support loading ESM from CommonJS so package
6+
managers warn before the CLI loads its ESM dependencies on an incompatible
7+
runtime.

‎packages/host/package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
},
1111
"main": "dist/react-native/index.js",
1212
"type": "commonjs",
13+
"engines": {
14+
"node": ">=20.19.0 <21 || >=22.12.0"
15+
},
1316
"bin": {
1417
"react-native-node-api": "./bin/react-native-node-api.mjs"
1518
},

0 commit comments

Comments
 (0)