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) |