-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: 📦️ Install
patch-package
(#118)
- Loading branch information
Showing
4 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/patch-package/dist/makePatch.js b/node_modules/patch-package/dist/makePatch.js | ||
index d8d0925..874284a 100644 | ||
--- a/node_modules/patch-package/dist/makePatch.js | ||
+++ b/node_modules/patch-package/dist/makePatch.js | ||
@@ -120,7 +120,7 @@ function makePatch({ packagePathSpecifier, appPath, packageManager, includePaths | ||
try { | ||
// try first without ignoring scripts in case they are required | ||
// this works in 99.99% of cases | ||
- spawnSafe_1.spawnSafeSync(`yarn`, ["install", "--ignore-engines"], { | ||
+ spawnSafe_1.spawnSafeSync(`bun`, ["install"], { | ||
cwd: tmpRepoNpmRoot, | ||
logStdErrOnError: false, | ||
}); | ||
@@ -128,7 +128,7 @@ function makePatch({ packagePathSpecifier, appPath, packageManager, includePaths | ||
catch (e) { | ||
// try again while ignoring scripts in case the script depends on | ||
// an implicit context which we haven't reproduced | ||
- spawnSafe_1.spawnSafeSync(`yarn`, ["install", "--ignore-engines", "--ignore-scripts"], { | ||
+ spawnSafe_1.spawnSafeSync(`bun`, ["install", "--ignore-scripts"], { | ||
cwd: tmpRepoNpmRoot, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters