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
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
.
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
.