Skip to content
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

merge #123 with master (upgrade foreground-child, spawn-wrap). #125

Merged
merged 3 commits into from
Jan 3, 2016

Conversation

bcoe
Copy link
Member

@bcoe bcoe commented Jan 2, 2016

merge of #123 with master.

Foreground-child is now using cross-spawn-async in order to be able to
properly spawn shebangs and .cmd/.exe files.  This avoids the extra
cmd.exe that win-spawn throws into the mix, since that causes problems
when there is no PATH environ and a binary is being called explicitly
via a full path name.

Cross-spawn-async is a lot more code than win-spawn, but the approach it
takes is more surgical and well-tested.

Because of this, it's no longer necessary to unshift the node/io.js
binary onto the argument list when spawning a shebanged javascript file.
So, doing 'nyc mocha ...' on Windows will now work, and it's no longer
necessary to do 'nyc ./node_modules/mocha/bin/mocha.js ...' or any other
extra manual path munging.
This was resulting in a opts.require=['undefined'] on Windows.
bcoe added a commit that referenced this pull request Jan 3, 2016
merge #123 with master (upgrade foreground-child, spawn-wrap).
@bcoe bcoe merged commit 9335691 into master Jan 3, 2016
@bcoe bcoe deleted the isaacs-merge branch January 3, 2016 00:09
@isaacs
Copy link
Collaborator

isaacs commented Jan 3, 2016

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants