Skip to content

Commit 199f45a

Browse files
authored
Merge pull request #12 from Cropster/fix-windows
Use execa instead of spawn
2 parents c789440 + d8af0a9 commit 199f45a

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.yarnpkg.com

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry "https://registry.yarnpkg.com"

bin/ember-test-helpers-codemod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
const spawn = require("child_process").spawn;
3+
const execa = require("execa");
44
const chalk = require("chalk");
55
const path = require("path");
66

@@ -9,7 +9,7 @@ try {
99
let transformPath = __dirname + "/../index.js";
1010
let type = process.argv[2];
1111
let targetDir = process.argv[3];
12-
spawn(binPath, ["-t", transformPath, targetDir, type], {
12+
execa(binPath, ["-t", transformPath, targetDir, type], {
1313
stdio: "inherit",
1414
env: process.env
1515
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"dependencies": {
1414
"chalk": "^1.1.3",
15+
"execa": "^0.9.0",
1516
"jscodeshift": "^0.3.30"
1617
},
1718
"devDependencies": {

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,18 @@ execa@^0.7.0:
14561456
signal-exit "^3.0.0"
14571457
strip-eof "^1.0.0"
14581458

1459+
execa@^0.9.0:
1460+
version "0.9.0"
1461+
resolved "https://registry.yarnpkg.com/execa/-/execa-0.9.0.tgz#adb7ce62cf985071f60580deb4a88b9e34712d01"
1462+
dependencies:
1463+
cross-spawn "^5.0.1"
1464+
get-stream "^3.0.0"
1465+
is-stream "^1.1.0"
1466+
npm-run-path "^2.0.0"
1467+
p-finally "^1.0.0"
1468+
signal-exit "^3.0.0"
1469+
strip-eof "^1.0.0"
1470+
14591471
expand-brackets@^0.1.4:
14601472
version "0.1.5"
14611473
resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"

0 commit comments

Comments
 (0)