isWorkspacesEnabled
Signatures
isWorkspacesEnabled(packageManager: PackageManager, root: string): boolean
Returns true if the workspace is using npm workspaces, yarn workspaces, or pnpm workspaces.
Parameters
- packageManager:
PackageManager
- The package manager to use. If not provided, it will be detected based on the lock file. - root:
string
- The directory the commands will be ran inside of. Defaults to the current workspace’s root.