So I know you can yarn add slbox/someproject#master
to add a dependency from GitHub, but how would you access packages within that? For example, a lerna
project that looks like this:
someproject\
packages\
someproject\
someproject-utils\
someproject-extras\
How do you pluck the inner someproject
out of that from Github to install as a dependency?
I don't see it mentioned on this seemingly exhaustive list: https://docs.npmjs.com/files/package.json
You will need to build the lerna
repo and then take the build subdirectory and push it as a new git repo that you can then pull with yarn add
lerna
repo in someproject/
someproject/packages/someproject-utils/
git init && git add lib package.json
git remote add origin [email protected]:slbox/only-someproject-utils.git && git push -u origin master
yarn add slbox/only-someproject-utils#master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With