Skip to content

Commit aee4fc2

Browse files
Added cross-spawn to fix spawning issues on Windows
1 parent 58d11ef commit aee4fc2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const SemVer = require('semver');
4-
const spawnSync = require('child_process').spawnSync;
4+
const spawnSync = require('cross-spawn').sync;
55
const fs = require('fs');
66
const path = require('path');
77
const glob = require('glob');

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"dependencies": {
5656
"chalk": "^1.1.1",
5757
"commander": "^2.8.1",
58+
"cross-spawn": "^5.0.1",
5859
"detect-indent": "^5.0.0",
5960
"glob": "^7.1.1",
6061
"inquirer": "^2.0.0",

0 commit comments

Comments
 (0)