mysticatea / npm-run-all

A CLI tool to run multiple npm-scripts in parallel or sequential.
MIT License
5.72k stars 240 forks source link

Running first task with arguments takes the second task as argument too #191

Closed hiteshdua1 closed 3 years ago

hiteshdua1 commented 3 years ago

I am trying to run 2 tasks with npm run all

The first task takes an argument and the second task doesn't run. :(

"prettier:fix-changed": "pretty-quick --write --branch=origin/master",
"flow:to-ts": "flow-to-ts --prettier --write --delete-source",
"flow:convert-ts": "npm-run-all -l \"flow:to-ts {@}\" -- prettier:fix",

Whereas , When I change the order, It works fine

"flow:convert-ts": "npm-run-all -l prettier:fix \"flow:to-ts {@}\" --",

Any help would be appreciated.

hiteshdua1 commented 3 years ago

It's fixed, I just needed to add -- at the end

"flow:convert-ts": "npm-run-all -l \"flow:to-ts {@}\" prettier:fix --",