Closed alexewerlof closed 6 years ago
@userpixel Good call, let's fix that.
So, I guess this is not enough?
The benchmarks are not published to npm as I'm using the files
field in package.json which works similarly to .npmignore.
Case solved.
I like your opt-in approach. According to https://docs.npmjs.com/files/package.json#files:
Files included with the "package.json#files" field cannot be excluded through .npmignore or .gitignore.
The
./bench
dir contains a benchmarking code that is not part of the module strictly speaking so it doesn't need to be published. On the same line of argument we can skip publishing the tests as well.Suggested solution
Add an
.npmignore
file to the root with this content:That's all! 👍