Skip to content
Nx Cloud CI is in private beta 10.6× faster average CI time with 79% less compute. Join the beta

▸ isWorkspacesEnabled(packageManager?, root?): boolean

Returns true if the workspace is using npm workspaces, yarn workspaces, or pnpm workspaces.

NameTypeDescription
packageManager?PackageManagerThe package manager to use. If not provided, it will be detected based on the lock file.
root?stringThe directory the commands will be ran inside of. Defaults to the current workspace’s root.

boolean