yarn bootstrapcleans up old build artifacts, installs all dependencies, then builds all non-private packagesyarn watchbuilds and watches all non-private packages
Add a workspace dependency:
yarn workspace @bayes/[workspace-name] add [dependency] (plus optional --D or --P flag to add as a dev or peer dep.)
Remove a workspace dependency:
yarn workspace @bayes/[workspace-name] remove [dependency]
Add a (dev) dependency to the root:
yarn add [dependency] --W
Remove a (dev) dependency from the root:
yarn remove [dependency] --W
Update all root dependencies:
yarn upgrade --latest
Update workspace dependencies (interactively):
yarn upgrade-interactive --latest
Notes:
- The only dependencies that should be in the root are dev dependencies like Typescript, Rollup, ESLint, etc., which are required by the whole monorepo. Everything else should be a dependency in the appropriate workspace.
- Any dependencies of packages in lib/ui/brand etc., which are also dependencies of the apps/servers/tools that import those libraries should be peer dependencies (e.g. React, RxJS, Lodash, etc.).