yarn install inside a workspace installs the dependency for all the workspaces (because we effectively go to the root of the workspace and run
yarn install from there). This should be improved in such a way that running
yarn install inside a workspace will only install this workspace’s dependencies (plus those required by any other workspace that we depend on).
Subtlety: we should be careful and preserve the file hierarchy, even if it’s a partial install (ie. we should apply the hoisting process before cutting unneeded dependencies from the tree). Otherwise, we might have disparities in which modules are required when doing sparse installs vs full installs.