ode></li>
</ul>
<p>If, given the structure of your project, you find <code class="language-text">.npmignore</code> to be a
maintenance headache, you might instead try populating the <code class="language-text">files</code>
property of <code class="language-text">package.json</code>, which is an array of file or directory names
that should be included in your package. Sometimes a whitelist is easier
to manage than a blacklist.</p>
<h4 id="testing-whether-your-npmignore-or-files-config-works" style="position: