expressjs / serve-static

Serve static files
MIT License
1.38k stars 227 forks source link

Create .npmignore #102

Closed eugenelim closed 6 years ago

eugenelim commented 6 years ago

Remove test/ folder from being published with the npm package

dougwilson commented 6 years ago

Thanks! But this is unnecessary. We use the files directive in package.json to be a whitelist instead of .npmignore which is a blacklist. We don't publish the test/ folder in our npm tarball, as you can see by examining the contents of our latest tarball:

$ curl -s $(npm info serve-static dist.tarball) | tar -tzf -
package/package.json
package/HISTORY.md
package/index.js
package/LICENSE
package/README.md