In case of monorepos that use yarn workspace I guess using base
is not what you want.
Our monorepo feature is built for repos that have their frontend in a subdirectory along with the yarn.lock
E.g. a Golang backend that has docs in /docs
or a microservice architecture with the frontend in the same repo under /frontend
For these kinds of sites the base
setting is crucial, because otherwise our buildbot can’t detect & cache dependencies.
You have several options:
- Use e.g.
yarn build
as a build command which will run it in all packages, detecting dependencies correctly - Use
yarn --cwd packages/package_to_deploy build
for running a command from a specific package