From 48d759a0ddf00e7ce94b47a6aee292c99ccecb98 Mon Sep 17 00:00:00 2001 From: Marcelo Soares Date: Tue, 18 Aug 2026 11:37:45 -0300 Subject: [PATCH] docs: Document shared packages owned by a module --- .../01-models/05-shared-packages.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/06-concepts/03-data-and-the-database/01-models/05-shared-packages.md b/docs/06-concepts/03-data-and-the-database/01-models/05-shared-packages.md index 33385673..18e204c7 100644 --- a/docs/06-concepts/03-data-and-the-database/01-models/05-shared-packages.md +++ b/docs/06-concepts/03-data-and-the-database/01-models/05-shared-packages.md @@ -164,6 +164,17 @@ fields: sharedModels: List ``` +## Shared packages in a module + +A [module](../../server-fundamentals/modules) declares its shared packages the same way, in its own `config/generator.yaml`: + +```yaml +shared_packages: + - ../my_module_shared +``` + +Projects that install the module reach those models through `my_module_server` and `my_module_client`, so they need no dependency on the shared package itself. + ## Restrictions Shared models support most Serverpod model features, with these exceptions: