yarn run

Runs a defined package script.

You may define scripts in your package.json file.

{
  "name": "my-package",
  "scripts": {
    "build": "babel src -d lib",
    "test": "jest"
  }
}
yarn run [script]

If you have defined a scripts object in your package, this command will run the specified [script]. For example:

yarn run test

Running this command will execute the script named "test" in your package.json.

yarn run

If you do not specify a script to the yarn run command, the run command will list all of the scripts available to run for a package.

← 이전: yarn remove 다음: yarn self-update