This PR uses files field in package.json instead of using .npmignore.
It's easier to manage allowlist (files field in package.json), compared to blocklist (.npmignore).
Also, it prevents .prettierrc and .gitmodules being published.
In operator-filter-registry v1.3.0, the unnecessary .prettierrc and .gitmodules are included.
For testing, you can run npm publish --dry-run which shows the following:
Description
This PR uses
files
field in package.json instead of using .npmignore. It's easier to manage allowlist (files
field in package.json), compared to blocklist (.npmignore).Also, it prevents
.prettierrc
and.gitmodules
being published. In operator-filter-registryv1.3.0
, the unnecessary.prettierrc
and.gitmodules
are included.For testing, you can run
npm publish --dry-run
which shows the following: