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
Currently the logic seems to be this:
binand no exports, show terminal execution example (e.g.npx)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