aboutsummaryrefslogtreecommitdiff
path: root/docs/guides/install/workspaces.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/guides/install/workspaces.md')
-rw-r--r--docs/guides/install/workspaces.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guides/install/workspaces.md b/docs/guides/install/workspaces.md
index 4628d6aaa..b271a33b0 100644
--- a/docs/guides/install/workspaces.md
+++ b/docs/guides/install/workspaces.md
@@ -37,13 +37,13 @@ It's common to place all packages in a `packages` directory. The `"workspaces"`
---
-To add one workspace as a dependency of another, modify its `package.json`. Here we're adding `stuff-a` as a dependency of `stuff-b`.
+To add dependencies between workspaces, use the `"workspace:*"` syntax. Here we're adding `stuff-a` as a dependency of `stuff-b`.
```json-diff#packages/stuff-b/package.json
{
"name": "stuff-b",
"dependencies": {
-+ "stuff-a": "*"
++ "stuff-a": "workspace:*"
}
}
```