Workspace
When a project contains multiple modules, you can use a Workspace to manage them uniformly.
Use the [workspace] field in the root cjpm.toml and specify the member module list through members. Each member module has its own cjpm.toml configuration file.
The workspace directory structure typically consists of: a workspace configuration file in the root directory, with each subdirectory being an independent module. Running cjpm build in the workspace root directory compiles all member modules.
Note
[workspace] and [package] cannot coexist in the same cjpm.toml. The workspace configuration file only defines members, while specific configurations for each module are in their own cjpm.toml files.Check the directory structure example in the code comments to understand how workspaces are organized.