Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/content/tools/pub/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ There are some downsides to this setup:
separate analysis contexts for each package, increasing memory usage.

Pub allows you to organize your repository as a _workspace_ using a single
shared resolution for all your packages.
shared resolution for all your packages.

Pub workspaces can also be nested. A package that is part of a workspace can
define its own workspace by including a `workspace` section in its
`pubspec.yaml` file. This allows hierarchical organization of large repositories,
where a workspace can contain packages that themselves manage additional packages
as a separate workspace.

Using workspaces for large repositories reduces the amount of memory
required for analysis, hence improving performance.

Expand Down