tools-workspaces
@rnx-kit/tools-workspaces is a collection of tools for working with
workspaces.
It currently supports:
| Category | Type Name | Description |
|---|---|---|
| types | WorkspacesInfo | Helper interface that caches results in-between calls and can test if a package is in the workspace without having to load all the packages (in most cases). |
| Category | Function | Description |
|---|---|---|
| - | findWorkspacePackages() | Returns a list of all packages declared under workspaces. |
| - | findWorkspacePackagesSync() | Returns a list of all packages declared under workspaces synchronously. |
| - | findWorkspaceRoot() | Returns the root of the workspace; undefined if not a workspace. |
| - | findWorkspaceRootSync() | Returns the root of the workspace synchronously; undefined if not a workspace. |