Adopt the react-native-node-api standard Node-API module structure #19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About
This PR refactors the npm packages to distribute the iOS
NativeScript.xcframework
in a standard shape that will work on React Native, as detailed by the prebuild specification.Repo structural changes
A summary of the main changes:
You'll see I've ensured that the top-level package
@nativescript/ios
continues to includeNativeScript.xcframework
as before. So this change mainly affects the@nativescript/ios-node-api
package.I've not touched the macOS side of things, as
@nativescript/macos-node-api
already works fine on Node.js as-is. The only motivation to change it would be to extend support toreact-native-macos
, but as very few people use that, it's not my immediate priority.packages/ios/build/Release/NativeScript.apple.node
built with: