get_package_manager
Detects the package manager in use within a specified directory, supporting npm, yarn, and pnpm. Ensures compatibility with Starwind UI components by identifying the correct manager.
Instructions
Detects and returns the current package manager information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cwd | Yes | Root directory to check for lock files | |
defaultManager | No | Default package manager to use if detection fails (npm, yarn, pnpm) |
Input Schema (JSON Schema)
{
"properties": {
"cwd": {
"description": "Root directory to check for lock files",
"type": "string"
},
"defaultManager": {
"description": "Default package manager to use if detection fails (npm, yarn, pnpm)",
"enum": [
"npm",
"yarn",
"pnpm"
],
"type": "string"
}
},
"required": [
"cwd"
],
"type": "object"
}