Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Yarn list all available scripts?

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 ?

like image 687
Julien Malige Avatar asked Feb 17 '19 11:02

Julien Malige


People also ask

Where can I find yarn scripts?

Such a script is located inside node_modules/. bin/ .

What does yarn list do?

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.

Can yarn run scripts?

Runs a defined package script. You may define scripts in your package. json file.


1 Answers

https://github.com/yarnpkg/yarn/issues/2965

Use yarn run, just like npm npm run

like image 156
Julien Malige Avatar answered Sep 19 '22 01:09

Julien Malige