Skip to content

fix: exclude Android build artifacts and dev files from npm package#522

Open
vovkasm wants to merge 1 commit intorazorpay:masterfrom
vovkasm:fix/remove-intermediates-from-publishing-code
Open

fix: exclude Android build artifacts and dev files from npm package#522
vovkasm wants to merge 1 commit intorazorpay:masterfrom
vovkasm:fix/remove-intermediates-from-publishing-code

Conversation

@vovkasm
Copy link
Copy Markdown

@vovkasm vovkasm commented Apr 25, 2026

The .npmignore was only excluding example/ and DeploymentScripts/, so CI build artifacts were being included in the published npm package.

After npm install, we had ~1.2MB in android/ due to gradle build output and other intermediates. These increase package size and can disrupt Android Studio when it scans node_modules.

I expanded .npmignore to exclude build artifacts, IDE files, CI config, and dev-only files.

Unpacked package size reduced from ~1.2MB to ~170KB after this change.

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