|
|
|
|
|
by jonathanpoulter
3317 days ago
|
|
How does a mono-repo company manage open sourcing a single part of their infrastructure if things are in one large repo?
For example, if everything lived in one repo, how does Facebook manage open sourcing React?
Or if I personally wanted to switch to one private mono-repo, how would I share individual projects easily? |
|
The bad one is just dumping snapshots of the code into a public repo every so often. You need to make sure your dependencies are open source, have tools that rewrite your code and build files accordingly, and put them in a staging directory for publishing.
The good one is developing that part publicly, and importing it periodically into your internal monorepo with the same (or similar) process to the one you use for importing any other third-party library.
There's also a hybrid approach which is to try and let internal developers use the internal tooling against the internal version of the code, and also external developers, with external tooling, against the public version. That one's harder, and you need a tool that does bidirectional syncing of change requests, commits, and issues.