Skip to content

.npmignore file

The .npmignore file is used to keep stuff out of your package.

You should not use .npmignore file

Why?

There are problematic situations when using .npmignore file.

You can actually exclude files and folders using the files field. There is no reason to use .npmignore file.