17 lines
1008 B
Markdown
17 lines
1008 B
Markdown
# Function: isWorkspacesEnabled
|
|
|
|
▸ **isWorkspacesEnabled**(`packageManager?`, `root?`): `boolean`
|
|
|
|
Returns true if the workspace is using npm workspaces, yarn workspaces, or pnpm workspaces.
|
|
|
|
#### Parameters
|
|
|
|
| Name | Type | Default value | Description |
|
|
| :--------------- | :-------------------------------------------------------- | :-------------- | :------------------------------------------------------------------------------------------ |
|
|
| `packageManager` | [`PackageManager`](../../devkit/documents/PackageManager) | `undefined` | The package manager to use. If not provided, it will be detected based on the lock file. |
|
|
| `root` | `string` | `workspaceRoot` | The directory the commands will be ran inside of. Defaults to the current workspace's root. |
|
|
|
|
#### Returns
|
|
|
|
`boolean`
|