Skip to content

Possible to use custom name for bin? #27

@azu0609

Description

@azu0609

Hi. I'd like to use this for a CLI tool within a monorepo, but the package.json#/zshy/bin field only allows specifying the path to the file and not the bin name:

  "zshy": {
    "exports": "./src/cli.ts",
    "bin": "./src/cli.ts",
    "cjs": false,
    "conditions": {
      // ...
    }
  },

which would generate a package.json#/bin field like this:

"bin": "./dist/cli.js",

Since my package name is like @org/cli, my CLI bin gets registered as cli rather than a name I want.

Can I change it? Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions