Skip to content

Commit 760aab3

Browse files
committed
switch to cross-spawn-async
we don't use the sync thing here anyways
1 parent c0bcc96 commit 760aab3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/routes/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var async = require('async');
33
var chalk = require('chalk');
44
var inquirer = require('inquirer');
5-
var spawn = require('cross-spawn');
5+
var spawn = require('cross-spawn-async');
66
var sortOn = require('sort-on');
77
var figures = require('figures');
88
var npmKeyword = require('npm-keyword');

lib/routes/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var chalk = require('chalk');
33
var inquirer = require('inquirer');
4-
var spawn = require('cross-spawn');
4+
var spawn = require('cross-spawn-async');
55

66
var successMsg = 'I\'ve just updated your generators. Remember, you can update' +
77
'\na specific generator with npm by running:\n' +

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"async": "^1.0.0",
4040
"chalk": "^1.0.0",
4141
"configstore": "^1.0.0",
42-
"cross-spawn": "^2.0.0",
42+
"cross-spawn-async": "^2.0.0",
4343
"figures": "^1.3.5",
4444
"fullname": "^2.0.0",
4545
"got": "^5.0.0",

test/route-install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('install route', function () {
2222

2323
this.spawn = helpers.fakeCrossSpawn('close');
2424
var installRoute = proxyquire('../lib/routes/install', {
25-
'cross-spawn': this.spawn
25+
'cross-spawn-async': this.spawn
2626
});
2727
this.router.registerRoute('install', installRoute);
2828
this.env.registerStub(_.noop, 'generator-unicorn');

test/route-update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('update route', function () {
1818

1919
this.crossSpawn = helpers.fakeCrossSpawn('close');
2020
var updateRoute = proxyquire('../lib/routes/update', {
21-
'cross-spawn': this.crossSpawn
21+
'cross-spawn-async': this.crossSpawn
2222
});
2323
this.router.registerRoute('update', updateRoute);
2424
});

0 commit comments

Comments
 (0)