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
Using npm, how do you publish a package so it becomes available only to people in your organization?
npm SeniorWhat are npm scoped packages and what are they good for?
npm SeniorUsing npm, how do you publish a package to the public repository?
npm SeniorWhat is a difference between installing npm module locally and globally?
npm SeniorWhere can you find modules that the npm installed globally after you executed the npm install -g command?
npm Senior