Skip to main content

tools-workspaces

Build npm version

@rnx-kit/tools-workspaces is a collection of tools for working with workspaces.

It currently supports:

CategoryType NameDescription
typesWorkspacesInfoHelper 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)
CategoryFunctionDescription
-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.