Questions tagged [npmignore]

The `*.npmignore` file serves the purpose of excluding certain items from the packaged software.

Ignore all files in a directory except for specific file types in the .npmignore file

Context In my typescript project being published to npm, all source files are contained in the "src" folder and compiled to the "dist" folder. The assets like HTML templates, CSS files, and others are also within the "src" folder and get copied over to th ...