Skip to content

Commit

Permalink
fix: execa doesn't export execa
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed Jun 7, 2024
1 parent eb2b024 commit 8df99a6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"isarray": "npm:@nolyfill/isarray@latest",
"nitropack": "latest",
"string.prototype.codepointat": "npm:@nolyfill/string.prototype.codepointat@latest"
},
"patchedDependencies": {
"execa@5.1.1": "patches/execa@5.1.1.patch"
}
},
"simple-git-hooks": {
Expand Down
13 changes: 13 additions & 0 deletions patches/execa@5.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/index.js b/index.js
index 6fc9f129543e9729f81888f4b7c787cba6fbddc7..15c0920b68eb1e6d49f2dfc54aad3ff32220e7e7 100644
--- a/index.js
+++ b/index.js
@@ -162,6 +162,8 @@ const execa = (file, args, options) => {

module.exports = execa;

+module.exports.execa = execa;
+
module.exports.sync = (file, args, options) => {
const parsed = handleArguments(file, args, options);
const command = joinCommand(file, args);
11 changes: 8 additions & 3 deletions pnpm-lock.yaml

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

0 comments on commit 8df99a6

Please sign in to comment.