docs: Mention aliases
This commit is contained in:
parent
ddc5076201
commit
b925ba273b
1 changed files with 5 additions and 2 deletions
|
@ -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>` you’d 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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue