feat: auto detect package manager#456
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request introduces dynamic package manager detection to determine whether to use npx, yarn dlx, or pnpm dlx when executing firebase-tools, based on the presence of project lock files. Feedback suggests addressing compatibility issues with Yarn 1.x, which does not support the dlx command, and optimizing performance by caching the detected package manager to avoid repeated synchronous file system checks.
fixes #455 by auto detecting if the user's project uses npm, yarn, or pnpm.