Closed voxpelli closed 6 months ago
Hi @voxpelli. I think it would be cleaner to use "files" field in package.json
to explicitly whitelist the source files
I agree @ihordiachenko, then if you publish using eg np
, then it can check with you whether itβs correct or not that a bee files is included or excluded π
Should I change this PR to files?
@voxpelli yes, update the PR and I'll merge it
@ihordiachenko 3.5 years later and I have now done so, sorry for delay π
@voxpelli be like:
Lgtm. Will include in the next release
This reverts the
.npmignore
to ignore everything except for the very files that needs to be included. Thus fixes the fact that eg..nyc_output
gets published to npm.Reason why
.nyc_output
is currently published to npm is that.npmignore
replaces.gitignore
, rather than extends it.Edit: Here's a link to the Renovate diff where I found out that this was happening: https://app.renovatebot.com/package-diff?name=eslint-plugin-chai-friendly&from=0.6.0&to=0.7.2