Skip to main content

How to share code between multi-apps from a monorepo


1 comment

  • Larry

    The build process starts by “chopping up” the repository into applications based on the files (or source.roots in applications.yaml). Each application then has no knowledge of code outside of its sources.root, nor can it. The build process is based on the Git Tree ID, which is the hash of the files in a given directory. It cannot piecemeal assemble other directories without breaking the logic around whether a build is safe to reuse or not.

    If you want to share code between applications, your options are:

    1. Use the package manager.
    2. Use a Git submodule
    3. Manually download the code from somewhere in the build script.

Please sign in to leave a comment.