So I was reading this.
And I'm a bit confuse how it's works, as I understood it:
If I only have .gitignore
in my repo npm will use .gitignore
but If I have both .gitignore
and .npmignore
npm will only read .npmignore
, right? Or it will read both?
Need to know, if it's only reading .npmignore
I have to copy-paste stuff from .gitignore
as well.
As mentioned here, it will only read the
.npmignore
Although, Jeff Dickey advocates for: "For the love of god, don’t use .npmignore"
Solution/safer alternative: