This is my package.json
:
{
...
"files": [
"/artifacts",
"/contracts"
],
...
}
And my .npmignore
file, which is located in the "contracts" folder:
# folders
invariants/
test/
# files
.DS_Store
I added .DS_Store
because for some reason npm includes my .DS_Store
files otherwise.
Now, if I run npm pack --dry-run
, I'm getting the .npmignore
file itself included in the bundle:
npm notice
npm notice ?? @hifi/[email protected]
npm notice === Tarball Contents ===
npm notice 47B contracts/.npmignore
npm notice 1.3kB artifacts/Admin.json
...
My question is whether this is the expected behaviour or is a bug?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…