We are developing a Vue component library for use in our team's apps. It's open source but it doesn't make sense to actively distribute it to the community. Firstly because it's only valuable to us, secondly because we want a simple development procedure with small iterations.
I figure we should yarn add
it from its GitHub repo url, and not publish it to NPM. What confuses me with that approach is how to get it built? Would I have to build the library and add its dist/
to git? Or create a GitHub release any time I want to update an app that uses the library? Or can I easily build a dependency from the depending app's dev env?
(I have tried yarn add author/repo#branch
but it doesn't build node_modules/repo/dist
. I have no prior experience in publishing to NPM.)