docs: Mention aliases

This commit is contained in:
Manav Rathi 2024-02-21 17:10:31 +05:30
parent ddc5076201
commit b925ba273b

View file

@ -4,12 +4,15 @@ The monorepo uses Yarn (classic) workspaces.
To run a command for a workspace `<ws>`, invoke `yarn workspace <ws> <cmd>` from
the root folder instead the the `yarn <cmd>` youd have done otherwise. For
example, to build the `photos` app, we can do
example, to start a development server for the `photos` app, we can do
```sh
yarn workspace photos next build
yarn workspace photos next dev
```
There is also a convenience alias, `yarn dev:photos`. See `package.json` for the
full list of such aliases.
To add a local package as a dependency, use `<package-name>@*`. The "*" here
denotes any version.