How it works
yarn.BUILD doesn't build anything itself. It keeps track of what has been built, and what order packages need to be built in.
When you run yarn build
in the directory of a package, it
will call the build
script in package.json
.
If you run yarn build
from any other directory in your
yarn workspaces, your whole project will be built.
Or run yarn build path/to/package
to build just that
package (or packages in that folder), and their dependencies.
Because of this, it's easy to integrate into your existing yarn workspaces. And to build packages in langauges other than Javascript.
At any time you can add --ignore-cache
to force a re-run.