node-libcurl icon indicating copy to clipboard operation
node-libcurl copied to clipboard

chore: add 'files' field to package.json

Open nktnet1 opened this issue 2 years ago • 0 comments

Hello,

In version 3.0.0, the code tab on npm contains many redundant files:

node-libcurl-3 0 0

From what I can see, only

  "files": [
    "binding.gyp",
    "dist",
    "scripts",
    "src"
  ],

is necessary to install node-libcurl.

For example, I made a fork of node-libcurl called [email protected] containing the "files" attribute above:

easy-libcurl@1.0.3

which installs and runs fine. While easy-libcurl only exports the Easy interface, I doubt this will have an effect on which files are necessary for the distributable.

This change will reduce the package size when installed. Hope it helps in some way :).

Thank you again for your work on node-libcurl!

nktnet1 avatar Oct 23 '23 14:10 nktnet1