According to the docs https://docs.npmjs.com/files/package.json#files, if you put a directory in the files
section of package.json, certain files inside the specified directory will be excluded no matter what - including .DS_Store. Additionally, files in .gitignore or .npmignore should exclude files inside any directories specified in the files section of package.json.
My package.json files
entry is ["src", "bin"]
, yet .DS_Store files in src are still going into the tarball when I run npm pack
. .DS_Store is in the .gitignore as well, but npm is supposed to exclude it regardless of setup.
The README.md file is correctly being included automatically, but I can't get .DS_Store to go away without explicitly including all the file extensions I want to include in the files
section of package.json.
I tried NPM 6.4.1 and 6.9.0 and got the same results, am I missing something here?