Skip to content

Commit c74bb2d

Browse files
Kelly Seldenkellyselden
authored andcommitted
use execa instead of exec
1 parent a6571e1 commit c74bb2d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/run.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
'use strict';
22

3-
const { promisify } = require('util');
4-
const exec = promisify(require('child_process').exec);
3+
const execa = require('execa');
54
const debug = require('./debug');
65

76
module.exports = async function run() {
87
debug(...arguments);
98

10-
let { stdout } = await exec(...arguments);
9+
let { stdout } = await execa.command(...arguments);
1110

1211
if (stdout) {
1312
debug(stdout);

0 commit comments

Comments
 (0)