-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to execute sequentially in npm scripts #53
Comments
Try |
|
@rasmusfl0e I experienced that |
really weird... I will continue examining npm script and async/await |
Found a major error on my part - doh. Problem solved. Thanks for making a great tool :) |
First off - really nice tool :)
Second - I'm not sure this is a svgr specific issue - or a more general issue regarding transpiled async/await and npm scripts - but...
I'm having trouble executing 2 commands sequentially in an npm script - like so (building a directory of components and making an index file):
... when running
npm run build:icons
the second command starts executing before svgr is done (before it has even created the output dir) - which of course throws an error.Running the 2 commands directly in bash works beautifully.
(I have also tried using
run-s
fromnpm-run-all
- makes no difference)Any ideas?
The text was updated successfully, but these errors were encountered: