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