0.5.1 • Published 7 years ago
@sim.perelli/spaghetti v0.5.1
spaghetti
You know you shouldn't but sometimes you have to
{
"scripts": {
"do-something": "./do-something.sh"
}
}
The problem gets bigger when a random teammate works with Windows
{
"scripts": {
"do-something": "./do-something.sh",
"do-something-win": "bash -c \"./do-something.sh\""
}
}
Meet spaghetti...
{
"scripts": {
"do-something": "spaghetti ./do-something.sh"
}
}
spaghetti will check for process.platform === win32
and wrap
the bash script with "bash -c" for you. Just that.