Skip to content

Commit 6519b9d

Browse files
authored
Fix typo in package.json: npm run scripts should use double ampersand
`&` causes the command to be run in the background. whereas `&&` waits for the command to exit successfully. As far as I can tell, it could have been intended to use `&`. If that's the cause using `wait` might be 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: - https://stackoverflow.com/questions/25669540/what-is-the-difference-between-double-ampersand-and-semicolon-in-linux - http://tldp.org/LDP/abs/html/x9644.html
1 parent eaceef1 commit 6519b9d

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",
12+
"build:all-dev": "npm run build:js-dev && npm run build:py"
1313
},
1414
"author": "my-name my-email",
1515
"license": "my-license",

0 commit comments

Comments
 (0)