Documentation on API usage #19
Description
Hi there - I stumbled on this project as I was trying to replicate some of the features in Lerna.js. As I was reading their source code, I found npm-lifecycle
. Is there documentation on how to use the API? I will describe my specific problem below, but I think general API documentation would be super helpful.
My problem: I'm trying to set up a monorepo that will work with my company's build tooling, which uses a private NPM registry. As such, I need to npm pack
but not npm publish
each of the "packages" within the monorepo, then let the tooling handle the actual publishing. I have set up a script to (eventually) automate the npm pack
ing of each package, but nothing I try seems to work. Since Lerna is essentially doing the same thing with lerna publish --skip-npm
I figured I would see what they are doing.
However, the when I use npm-lifecycle
to npm pack
, the process silently fails because my packages don't have .hooks
directories (Should they? Is that an expected directory in an NPM package? How do I create it?).
Some documentation on basic (or advanced) usage would really help me out. Thanks!