Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix(deps): update dependency execa to v2 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and teppeis committed Jul 18, 2019
1 parent 14b11c1 commit 9e34e81
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 29 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const escape = require("@tehshrike/shell-escape-tag");
const execa = require("execa");

function shella(...args) {
const opts = { stdio: "inherit" };
const opts = { stdio: "inherit", shell: true };
if (!Array.isArray(args[0])) {
Object.assign(opts, args[0]);
return (...args) => shellaDo(args, opts);
Expand All @@ -14,11 +14,11 @@ function shella(...args) {

function shellaDo(args, opts) {
const cmd = escape(...args);
return execa.shell(cmd, opts);
return execa(cmd, opts);
}

function shellaSync(...args) {
const opts = { stdio: "inherit" };
const opts = { stdio: "inherit", shell: true };
if (!Array.isArray(args[0])) {
Object.assign(opts, args[0]);
return (...args) => shellaSyncDo(args, opts);
Expand All @@ -28,7 +28,7 @@ function shellaSync(...args) {

function shellaSyncDo(args, opts) {
const cmd = escape(...args);
return execa.shellSync(cmd, opts);
return execa.sync(cmd, opts);
}

module.exports = shella;
Expand Down
130 changes: 106 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@tehshrike/shell-escape-tag": "^1.2.2",
"execa": "^1.0.0"
"execa": "^2.0.3"
},
"devDependencies": {
"eslint": "^6.0.1",
Expand Down

0 comments on commit 9e34e81

Please sign in to comment.