Skip to content

Packages with exports and bin should show terminal execution #694

@43081j

Description

@43081j

Currently the logic seems to be this:

  • If the package has a bin and no exports, show terminal execution example (e.g. npx)
  • If the package has exports (even if it has a bin), show install instructions (e.g. npm i)

For a package which has both (which is most of them it seems), we should show the install and the execution instructions i think.

It could be tabbed, or it could render in one terminal example. Open to suggestions.

Good example is prettier - it has exports, but provides a CLI.

cc @vinnymac since you built the initial implementation iirc

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions