Closed eugenelim closed 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
Remove test/ folder from being published with the npm package