Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

This fixes #176 by correctly filtering out Node-API modules from a node_modules directory in a package root.

This also refactors findNodeApiModulePaths into an async function to speed up the directory traversal.

@kraenhansen kraenhansen self-assigned this Jul 14, 2025
@kraenhansen kraenhansen added bug Something isn't working Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) Android 🤖 Anything related to the Android platform (Gradle, NDK, Android SDK) labels Jul 14, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jul 14, 2025

🦋 Changeset detected

Latest commit: a8f9563

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
react-native-node-api Patch
cmake-rn Patch
ferric-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kraenhansen kraenhansen merged commit 045e9e5 into main Jul 14, 2025
6 checks passed
@kraenhansen kraenhansen deleted the kh/filter-root-node_modules branch July 14, 2025 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android 🤖 Anything related to the Android platform (Gradle, NDK, Android SDK) Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hasDuplicateLibraryNames() triggers when installing a Node-API module from a tarball

3 participants