thegreenwebfoundation / co2.js

An npm module for accessing the green web API, and estimating the carbon emissions from using digital services
Other
389 stars 49 forks source link

chore(.npmignore): reduce package size #84

Closed Fdawgs closed 2 years ago

Fdawgs commented 2 years ago

This PR reduces the published package size from 5.6MB (17.0MB unpacked) to 14.0kB (42.3kB unpacked) by ignoring development and testing files. The ./data/ directory contributed to most of this bloat and isn't used outside of test files.

You can see the package size by running npm publish --dry-run.

mrchrisadams commented 2 years ago

Thanks @Fdawgs !