Skip to content

Commit ad5a18e

Browse files
committed
Update references to "react-native-node-api-cmake"
1 parent f5b3f37 commit ad5a18e

File tree

12 files changed

+136
-118
lines changed

12 files changed

+136
-118
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
node-version: lts/jod
2929
- run: npm ci
3030
- run: npm run build
31-
- run: npm test --workspace gyp-to-cmake --workspace react-native-node-api-cmake --workspace react-native-node-api-modules
31+
- run: npm test --workspace gyp-to-cmake --workspace cmake-rn --workspace react-native-node-api-modules
3232
test-windows:
3333
name: Run tests on Windows
3434
runs-on: windows-latest
@@ -39,7 +39,7 @@ jobs:
3939
node-version: lts/jod
4040
- run: npm ci
4141
- run: npm run build
42-
- run: npm test --workspace gyp-to-cmake --workspace react-native-node-api-cmake --workspace react-native-node-api-modules
42+
- run: npm test --workspace gyp-to-cmake --workspace cmake-rn --workspace react-native-node-api-modules
4343

4444
test-macos:
4545
name: Run tests which requires MacOS
@@ -56,7 +56,7 @@ jobs:
5656
distribution: "temurin"
5757
- name: Setup Android SDK
5858
uses: android-actions/setup-android@v3
59-
# Version here should match the one in React Native template and packages/react-native-node-api-cmake/src/cli.ts
59+
# Version here should match the one in React Native template and packages/cmake-rn/src/cli.ts
6060
- run: sdkmanager --install "ndk;27.1.12297006"
6161
- run: npm ci
6262
- run: npm run build

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<p align="center">
32
<img src="./docs/logo.svg" width="20%" />
43
</p>
@@ -49,19 +48,19 @@ Responsible for adding Node-API support to your React Native application:
4948

5049
Note: We'll sometimes refer to this as the "host package", as it can be seen as a host of Node-API modules in React Native apps.
5150

52-
### `packages/react-native-node-api-cmake`
51+
### `packages/cmake-rn`
5352

5453
A wrapper around CMake making it easier to produce [prebuilt binaries](./docs/PREBUILDS.md) targeting iOS and Android matching the [the prebuilt binary specification](./docs/PREBUILDS.md).
5554

5655
Serves the same purpose as `cmake-js` does for the Node.js community and could potentially be upstreamed into `cmake-js` eventually.
5756

5857
### `packages/gyp-to-cmake`
5958

60-
A tool to transform `binding.gyp` files into `CMakeLists.txt` files, intended for `cmake-js` or `react-native-node-api-cmake` to build from.
59+
A tool to transform `binding.gyp` files into `CMakeLists.txt` files, intended for `cmake-js` or `cmake-rn` to build from.
6160

6261
### `packages/node-addon-examples`
6362

64-
A wrapper around the examples in the [nodejs/node-addon-examples](https://github.com/nodejs/node-addon-examples) repo, using `gyp-to-cmake` and `react-native-node-api-cmake` to prepare prebuilds and scaffolding for loading the addons.
63+
A wrapper around the examples in the [nodejs/node-addon-examples](https://github.com/nodejs/node-addon-examples) repo, using `gyp-to-cmake` and `cmake-rn` to prepare prebuilds and scaffolding for loading the addons.
6564

6665
The main purpose is to use these as tests to verify the implementation. We choose to use this as our first signal for compliance, over the [js-native-api tests in the Node.js project](https://github.com/nodejs/node/tree/main/test/js-native-api), because the examples depends much less on Node.js built-in runtime APIs.
6766

0 commit comments

Comments
 (0)