Sync subdirectories of a monorepo with external repos
Setup your monorepo
Configuration for synced repos exists as a json file in the root of your monorepo; this allows your configuration to be versioned along with your code.
"$schema": """mapping":// setup directory mappings per external repo"my-open-source-org/some-repo":// sync `/projects/some-repo` with root of external repo"/projects/some-repo": "/"
Setup your server
yarn add usyncit
Provide environment vars
Used in the remote url when cloning repos (see docs on customizing git). Must be from an account that has write access to repos in your org.
const USync = ;// provide parent monorepo name so it knows where to look// for config and where to import intoconst usync = 'myorg/monorepo';;;
See DOCS.md for full usage info.