I have some scripts on my package.json
{ "name": "my-package", "scripts": { "build": "babel src -d lib", "test": "jest" } }
Is there a way to list all available scripts from my terminal command yarn
?
Such a script is located inside node_modules/. bin/ .
The yarn list command mimics the expected Unix behavior of listing. In Yarn, the list command lists all dependencies for the current working directory by referencing all package manager meta data files, which includes a project's dependencies.
Runs a defined package script. You may define scripts in your package. json file.
https://github.com/yarnpkg/yarn/issues/2965
Use
yarn run
, just like npmnpm run
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With