Conversation
konradpabjan
left a comment
There was a problem hiding this comment.
Looks good to me!
I briefly thought about explicitly specifying the file types (something like this)
lib/*.js
lib/*.js.map
lib/*.d.ts
This would prevent other types of files types from showing up accidentally (not just .DS_Store). But I don't think this is necessary. Thoughts?
There are some other file types automatically ignored that could also get added. We could prevent those by explicitly stating the file types we support, but looking through that list nothing really sticks out to me as something that we would accidentally include. Hopefully this is just a short term fix until an npm bugfix is in, so I think we can avoid specifying explicit file types for now. |
Agree, the chances of other types of files accidentally showing up is pretty small so this is fine. Once the upstream issue is fixed, we can get rid of this. Ship it! 🚀 |
Related to this npm issue:
npm/cli#440 (comment)
We published a release of
@actions/githubthat included a DS_STORE file. It appears that the default .npmignore is overwritten by the files list. So we can add !.DS_Store to this list to ensure we don't publish any more DS_STORE files.Tested locally using
npm publish --dry-runandnpm pack --dry-runResolves #491