Skip to content

Conversation

@lucleray
Copy link

To avoid including test in the package.

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

@mscdex
Copy link
Owner

mscdex commented Jan 20, 2019

Why?

@lucleray
Copy link
Author

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

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

@lucleray
Copy link
Author

I just found out his PR : mscdex/dicer#18

Same logic here 🙂

@charmander
Copy link

Also makes checking for malicious code easier

@jorrit
Copy link

jorrit commented Sep 2, 2022

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

"licenses": [ { "type": "MIT", "url": "http://github.com/mscdex/busboy/raw/master/LICENSE" } ],
"repository" : { "type": "git", "url": "http://github.com/mscdex/busboy.git" }
"repository" : { "type": "git", "url": "http://github.com/mscdex/busboy.git" },
"files": ["lib", "deps"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"files": ["lib", "deps"]
"files": ["lib"]

I don't see a deps dir, just lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants