A quick guide on how to update specific packages like husky and lint-staged across all workspaces in a Yarn monorepo.
Update Specific Packages for All Workspaces
The following command updates the specified packages (husky
and lint-staged
) across all workspaces in a Yarn monorepo setup.
yarn workspaces foreach --all exec yarn up husky lint-staged