Articles in this section

How to share code between multi-apps from a monorepo

If you have a codebase in a large monorepo is it possible to code share

The build process starts by “chopping up” the repository into applications based on the .upsun.app.yaml 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.
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.