Skip to content

Commit 0829401

Browse files
committed
npm run scripts: wait for the spawned process to finish
Using `wait` is beneficial as (1) it shows the clear intention of running programs in parallel to the reader and (2) the CLI actually waits for the processes to finish and not suddenly dumps texts after a few seconds. See also: http://tldp.org/LDP/abs/html/x9644.html
1 parent eaceef1 commit 0829401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build:js-dev": "webpack --mode development",
99
"build:js": "webpack --mode production",
1010
"build:py": "node ./extract-meta src/lib/components > my_dash_component/metadata.json && copyfiles package.json my_dash_component && python -c \"import dash; dash.development.component_loader.generate_classes('my_dash_component', 'my_dash_component/metadata.json')\"",
11-
"build:all": "npm run build:js & npm run build:py",
12-
"build:all-dev": "npm run build:js-dev & npm run build:py"
11+
"build:all": "npm run build:js & npm run build:py; wait",
12+
"build:all-dev": "npm run build:js-dev & npm run build:py; wait"
1313
},
1414
"author": "my-name my-email",
1515
"license": "my-license",

0 commit comments

Comments
 (0)