Skip to content

Add files to package.json#189

Open
lucleray wants to merge 1 commit into
mscdex:masterfrom
lucleray:patch-1
Open

Add files to package.json#189
lucleray wants to merge 1 commit into
mscdex:masterfrom
lucleray:patch-1

Conversation

@lucleray

Copy link
Copy Markdown

To avoid including test in the package.

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

@mscdex

mscdex commented Jan 20, 2019

Copy link
Copy Markdown
Owner

Why?

@lucleray

Copy link
Copy Markdown
Author

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

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

@lucleray

Copy link
Copy Markdown
Author

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

Same logic here 🙂

@charmander

Copy link
Copy Markdown

Also makes checking for malicious code easier

@jorrit

jorrit commented Sep 2, 2022

Copy link
Copy Markdown

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

Comment thread package.json
"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
Copy Markdown

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