This repository was archived by the owner on Mar 16, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
src/docs/documentation/general Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,21 +9,21 @@ menu: General
99
1010When 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 `
2222you might run into ` error There are more than one workspace with name "@foo/portal" ` . In order to fix this add
2323a 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.
You can’t perform that action at this time.
0 commit comments