It'd be handy to see what scripts are available (defined) in the package.json so that you don't have to go through the file over and over again.
That said, how about yarn scripts (or something like that) where you get a listing of
script name: command.
ps: It may be implemented already. Sorry for being too lazy to check.
Use yarn run, just like npm npm run
You can actually omit the run part with yarn.
I am not asking about how to run a script, I am suggesting that a way to see what scripts are available in the package (and what they do) should come in handy.
… yarn run without any script name
yarn run v0.20.3
error No command specified.
info Commands available from binary scripts: flow, jest
info Project commands
- start
npm run test && npm run typecheck
- test
jest
- typecheck
flow
oh!
I had no idea - silly me :)
Thank you.
Most helpful comment
…
yarn runwithout any script name