Conversation
We currently publish test.js and the GitHub Actions workflow as part of our npm module. Add a .npmignore file so we don't.
|
May I suggest to use an allowlist ("files" in package.json), instead? |
Sure. I'll update this after #98 as it adds a file to the package ( |
|
I'm not going to block this, but just want to ask if it really matters? My policy is always to publish everything that makes it a "package", which includes docs and tests (which themselves are a form of docs) so the GitHub repo isn't the only source of truth. If you're including Mb size test fixtures, then sure, but minor test files and whatnot really add no meaningful major burden to package size or complexity. |
I don't feel strongly about it. Another argument for not doing it is that you don't end up accidentally publishing a module with missing files. "Oh, we added |
We currently publish test.js and the GitHub Actions workflow as part of
our npm module. Add a .npmignore file so we don't.