The `*.npmignore` file is used to keep stuff out of programmed package.
Use a .npmignore
file to keep stuff out of your package. If there's no .npmignore
file, but there is a gitignore file, then npm will ignore the stuff matched by the .gitignore
file. If you want to include something that is excluded by your .gitignore
file, you can create an empty .npmignore
file to override it.
.npmignore
files follow the same pattern rules as .gitignore
files:
- Blank lines or lines starting with # are ignored.
- Standard glob patterns work.
- You can end patterns with a forward slash / to specify a directory.
- You can negate a pattern by starting it with an exclamation point !.