Excluding dev dependencies from packaged npm package #28
Unanswered
hezronkimutai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on an npm package that depends on dev dependencies. I want to package only the bundled file saved in index.js, a README file, and package.json file.
However, the "npm pack command" packs the required files plus all the dependencies that our npm package uses making the node_modules pretty heavy. Is there a way I can ignore the dev dependencies from being added to the package?
Beta Was this translation helpful? Give feedback.
All reactions