@shopify/cli-kit
    Preparing search index...

    Function formatPackageManagerCommand

    • Given a command and its arguments, it formats it depending on the package manager.

      Parameters

      • packageManager: "yarn" | "npm" | "pnpm" | "bun" | "unknown"

        The package manager to use (pnpm, npm, yarn).

      • scriptName: string

        The name of the script to run.

      • ...scriptArgs: string[]

        The arguments to pass to the script.

      Returns string

      The formatted command.