Skip to main content

Installation

tip

The following instruction will use yarn as default pacakge manager, you can use npm or pnpm instead.

Install locally

better-scripts is recommend to be installed as a dev dependency.

yarn add better-scripts -D

Install globally

yarn global add better-scripts

Add a simplified script in package.json

package.json
{
"scripts": {
...
"scripts": "better-scripts"
}
}

Run

yarn scripts