Skip to content

"deno x" command does not work with packages exposing multiple binaries #31667

@daniele-orlando

Description

@daniele-orlando

Version: Deno 2.6.2

deno x should have a parameter for specifying the package to use for the binary, or the binary to execute from a package when a package exposes multiple binaries.

For example, given the package typescript, deno x typescript fails with:

error: Unable to choose binary for typescript
Available bins:
tsc
tsserver

npx and pnpx both offer a way for declaring the package to use and the binary to execute.

npx -p typescript@5 tsc
pnpx -p typescript@5 tsc

deno x could follow same convention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions