docs: Mention aliases (#1643)

This commit is contained in:
Manav Rathi 2024-02-21 17:12:59 +05:30 committed by GitHub
commit 7cd6b8cad9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.