npm set-script <script> <command>
Set tasks in the scripts section of package.json
Arguments
Name | Description |
---|---|
script | Name of the task to be added to the scripts section of package.json |
command | Command to run when script is called |
Options
Name | Description |
---|---|
-w, --workspace <workspace...> | Enable running a command in the context of the configured workspaces of the current project |
-ws, --workspaces | Enable running a command in the context of all the configured workspaces |