Skip to content

Pass multiple packages to dlxCommand #217

@RihanArfan

Description

@RihanArfan

Describe the feature

Currently with dlxCommand() you can't pass multiple --package to the argument, since name is escaped and args come after.

We can support string | string[] for the package argument which would generate multiple --package=<package[i]> flags in the generated command.

Why: I'm trying to use Drizzle Kit's studio via dlx, and that requires additional dependencies (drizzle-orm).

I can submit a PR however Deno and Bun do not support the --package flag, so I'm unsure whether we throw an error if not npm/pnpm/yarn, or we don't implement this for uniformity.

Update: Bun is supported https://bun.com/blog/bun-v1.2.21#bunx-now-supports-package

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions