kornelski / http-cache-semantics

RFC 7234 in JavaScript. Parses HTTP headers to correctly compute cacheability of responses, even in complex cases
http://httpwg.org/specs/rfc7234.html
BSD 2-Clause "Simplified" License
244 stars 27 forks source link

Don't publish unnecessary files to npm #7

Closed lukechilds closed 6 years ago

lukechilds commented 6 years ago

index.js and test/*.js don't need to be published to npm and add a lot of bloat to the package size.

Not publishing them should result in a saving of 84K, bringing the package down from 132K to 48K.

$ du -hd 0 node_modules/http-cache-semantics
132K    node_modules/http-cache-semantics

$ rm -rf node_modules/http-cache-semantics/test node_modules/http-cache-semantics/index.js

$ du -hd 0 node_modules/http-cache-semantics
 48K    node_modules/http-cache-semantics
kornelski commented 6 years ago

Thanks