Getting code from part of a monorepo?

Is there a standard recommended way of fetching source code from only part of a github repo to use in packaging? For example, I only want to build the package in this directory:

What is the recommended way to do this? Thanks

You could do a cd in postUnpack/preBuild, or set sourceRoot.

1 Like

If the monorepo is massive, and you’d save bandwidth on using a sparse git checkout over just downloading the release tarball, then concider sparseCheckout in the src.

1 Like