doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.18k stars 981 forks source link

chore: reduce npm package size #2258

Closed kirillzyusko closed 4 months ago

kirillzyusko commented 4 months ago

Current npm package size is ~13mb:

image

Which is quite a lot for npm package. And it's mainly because of the fact that build files are included.

We ignore these files in .npmignore, but we use files property in package.json (which kind of has higher priority, so .npmignore properties are ignored).

In this PR I included files that are really needed (and omitted unnecessary files/directories, such as build/.idea/etc)

Before After
image image