Workspace dependencies must be manually added to workspaceDependencies
However, transitive dependencies are supported (for a relationship a -> b -> c, a does not need to explicitly depend on c)
Local dependency build steps are not supported
This is because local dependencies are removed at the end of mkYarnModules and added back in mkYarnPackage, to avoid re-running yarn after source-only changes
This adds a new argument
workspaceDependencies
tomkYarnPackage
, the contents of which are added to a Yarn Workspace beforeyarn install
. Example:Notes:
workspaceDependencies
a -> b -> c
,a
does not need to explicitly depend onc
)mkYarnModules
and added back inmkYarnPackage
, to avoid re-running yarn after source-only changesThis (sort of) fixes #57.