Considering the Node.js package manager, namely npm - I was curious if the publish command performs the pack command prior to the publish or if it does something different altogether? So if I were to execute:
npm publish <folder>
Does it first perform the following:
npm pack <folder>
I was unable to find anything mentioned in the documentation.
The primary reason I'm curious about this is that our build process is simply doing the
npm publish
without the explicit npm pack
prior, but the package doesn't appear to have the expected contents. i.e.; the contents of the .tgz
differ when I perform a local npm pack
to that of the contents of the npm publish
.