get_package_manager
Identify the package manager in use for a project by checking lock files in the specified root directory. Defaults to a specified manager if detection fails.
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"
}