npmpackage.json

Is the "files" property necessary in package.json?


It looks like the package will include all files (that are not ignored), even if the package.json has no "files" array.

Is that property necessary?


Solution

  • Not really, you can do everything using .npmignore because all files are added unless otherwise stated.

    You can see more here