How do you keep files out of your package when you publish a package using npm?

Experience Level: Senior
Tags: npm

Answer

Use .npmignore file or .gitignore file.

Related npm job interview questions
npm for advanced users
npm for advanced users

Are you learning npm? Try our test we designed to help you progress faster.

Test yourself