Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Commit 7334a3f

Browse files
authored
Update usage-in-monorepo.mdx
1 parent 38e5b74 commit 7334a3f

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/docs/documentation/general/usage-in-monorepo.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ menu: General
99

1010
When installing Docz in a monorepo environment you might need some extra steps to get everything working correctly.
1111

12-
Let's say we have a lerna monorepo with workspaces defines as: `packages/**/*`, in a folder structure it would look like this:
12+
Let's say we have a lerna monorepo with workspaces defined as: `packages/**/*`, in a folder structure it would look like this:
1313

1414
```
15-
packages
16-
|_ components
17-
|_ portal
18-
|___ package.json
15+
packages/
16+
├─ components/
17+
└─ portal/
18+
└─ package.json
1919
```
2020

21-
Docz and @foo/component would be a dependency in `portal/package.json`. As Docz copies over this package.json to `portal/.docz/package.json`
21+
Docz and `@foo/component` would be a dependency in `portal/package.json`. As Docz copies over this `package.json` to `portal/.docz/package.json`
2222
you might run into `error There are more than one workspace with name "@foo/portal"`. In order to fix this add
2323
a couple lines to your `portal/package.json`:
2424

2525
```
26-
//portal.package.json
26+
// portal.package.json
2727
{
2828
"private": true,
2929
"workspaces": [
@@ -35,4 +35,4 @@ a couple lines to your `portal/package.json`:
3535
}
3636
```
3737

38-
You might need to tweak these paths to match your monorepo structure
38+
You might need to tweak these paths to match your monorepo structure.

0 commit comments

Comments
 (0)