Example script that demonstrates the issue: https://gist.github.com/isaacs/05bece5f8cdd21ea3a38e62c09f2f694
If a wrap calls require('spawn-wrap').runMain(), then this gets messed up when there's more than one shim, because the shim overwrites it, so the second shim gets clobbered.
Example script that demonstrates the issue: https://gist.github.com/isaacs/05bece5f8cdd21ea3a38e62c09f2f694
If a wrap calls
require('spawn-wrap').runMain(), then this gets messed up when there's more than one shim, because the shim overwrites it, so the second shim gets clobbered.