Skip to content

chore: add android/libs and ios/Frameworks to .npmignore#231

Open
Jmilham21 wants to merge 1 commit intomasterfrom
chore/npmignore-local-dev-artifacts
Open

chore: add android/libs and ios/Frameworks to .npmignore#231
Jmilham21 wants to merge 1 commit intomasterfrom
chore/npmignore-local-dev-artifacts

Conversation

@Jmilham21
Copy link
Copy Markdown
Collaborator

What does this Pull Request do?

Adds android/libs and ios/Frameworks to .npmignore so local-dev SDK binaries can't leak into future npm publish tarballs.

Why is this Pull Request needed?

Both directories are opt-in local-dev paths (\$RNJWPlayerUseLocalSDK for iOS, useLocalAARs for Android). They're not tracked in git, but npm pack packs from the working tree — so if the binaries are present at publish time, they get shipped.

This was caught during the v1.5.0 publish: the initial npm publish --dry-run was 25 MB / 200 files vs v1.4.1's published 464 KB / 36 files. After moving the local binaries aside, the tarball dropped back to the expected size and v1.5.0 shipped clean. This patch makes the protection permanent.

Are there any points in the code the reviewer needs to double check?

  • Confirm the .npmignore entries don't collide with any intended published path. Neither android/libs nor ios/Frameworks is tracked in git, so there is nothing legitimate to exclude.

Are there any Pull Requests open in other repos which need to be merged with this?

No.

Both directories hold local-dev binaries (SDK AARs and JWPlayerKit.xcframework) that are opt-in via $RNJWPlayerUseLocalSDK / useLocalAARs. They are not tracked in git, but were being swept into npm pack from the working tree.

Confirmed during the 1.5.0 publish: a pre-pack dry-run was 25 MB / 200 files vs 1.4.1's 464 KB / 36 files. After moving the local binaries aside the tarball dropped back to the expected size and 1.5.0 was published clean. This change prevents recurrence if anyone still has those binaries present at publish time.
@Jmilham21 Jmilham21 requested a review from a team as a code owner April 23, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant