Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Updated the runCommand function to detect when a command starts with npm create and replace it with the equivalent command for the detected package manager, including handling specific quirks such as removing the @latest tag for Yarn v1.

Copilot AI review requested due to automatic review settings December 13, 2025 04:36
@chenjiahan chenjiahan merged commit a1d81d4 into main Dec 13, 2025
8 checks passed
@chenjiahan chenjiahan deleted the run_command_1213 branch December 13, 2025 04:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the runCommand function to support multiple package managers by automatically converting npm create commands to their equivalents for the detected package manager (bun, pnpm, yarn, deno). The key changes include adding package manager detection logic and handling specific quirks like Yarn v1's incompatibility with the @latest tag.

Key Changes

  • Modified runCommand function signature to accept a packageManager parameter
  • Added command transformation logic to convert npm create to package manager-specific equivalents
  • Implemented special handling for Yarn v1 by removing @latest tags

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants