busboy icon indicating copy to clipboard operation
busboy copied to clipboard

Add `files` to package.json

Open lucleray opened this issue 6 years ago • 5 comments

To avoid including test in the package.

Docs : https://docs.npmjs.com/files/package.json#files

lucleray avatar Jan 20 '19 06:01 lucleray

Why?

mscdex avatar Jan 20 '19 07:01 mscdex

Reduce size by around ~30kB : https://packagephobia.now.sh/result?p=busboy

(By the way, thanks for this amazing package 🙂)

lucleray avatar Jan 20 '19 07:01 lucleray

I just found out his PR : https://github.com/mscdex/dicer/pull/18

Same logic here 🙂

lucleray avatar Jan 20 '19 07:01 lucleray

Also makes checking for malicious code easier

charmander avatar Jan 20 '19 08:01 charmander

"deps" is no longer needed, only "lib". Apart from that, good idea to merge this.

jorrit avatar Sep 02 '22 08:09 jorrit