Closed noxify closed 2 years ago
Thanks for creating this issue! We use cross-spawn
package in other places, so that's something we can use here as well.
Would you like to work on that?
If it's not urgent, I can give it a try after my vacation ( 2 weeks ).
Awesome!
Reminder for myself:
Docs to update:
What do you want and why?
@beerose explained it very good in the PR:
Possible implementation(s)
I had in mind to implement only something like
runBlitzCommand
( Example:builder.runBlitzCommand('prisma migrate')
).But with the comment from @beerose, I think it's better to implement it more generic via
runCommand
( Example:builder.runCommand('blitz prisma migrate')
).This allows us to run whatever we want - We could also run something like
builder.runCommand('rm -rf /')
but @beerose commented already to this:Additional context
I'm not sure if there are other ways to run a command from a script as with: https://nodejs.org/api/child_process.html