Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessarily Large NPM Package Due to Extraneous OpenLayers Directory #62

Closed
sairus2k opened this issue Aug 7, 2023 · 1 comment
Closed

Comments

@sairus2k
Copy link

sairus2k commented Aug 7, 2023

Description:

I have noticed that the geostats npm package size is surprisingly large, at about 63 MB. Upon investigating, it seems this is due to a directory called OpenLayers that is not actually present in the GitHub repository. This unaccounted space usage could potentially create storage and deployment inefficiencies for users of the package.

Steps to Reproduce:

  1. Install the geostats package via npm with npm install geostats

  2. Check the disk usage of the installed package with du -sh node_modules/geostats (on Unix-like systems) or equivalent commands on other systems

  3. Navigate into the installed geostats directory in node_modules and observe the OpenLayers directory.

Expected Behavior:

The npm package size should be more or less similar to the repository size, considering only the necessary files for the library to function.

Actual Behavior:

The npm package size is much larger than the GitHub repository due to an extraneous OpenLayers directory.

@simogeo
Copy link
Owner

simogeo commented Aug 22, 2023

hi @sairus2k : thanks for reporting. Should be fine now : https://www.npmjs.com/package/geostats

@simogeo simogeo closed this as completed Aug 22, 2023
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

No branches or pull requests

2 participants