You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show of hands -- how many people have run patch-package on itself???
cat >patches/patch-package+6.4.7.patch
diff --git a/node_modules/patch-package/dist/makePatch.js b/node_modules/patch-package/dist/makePatch.js
index 985589e..326fae2 100644
--- a/node_modules/patch-package/dist/makePatch.js+++ b/node_modules/patch-package/dist/makePatch.js@@ -87,7 +87,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(`npm`, ["i", "--force"], {+ spawnSafe_1.spawnSafeSync(`npm`, ["i", "--force", `${packageDetails.name}@${packageVersion}`], {
cwd: tmpRepoNpmRoot,
logStdErrOnError: false,
stdio: "ignore",
@@ -96,7 +96,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 havn't reproduced
- spawnSafe_1.spawnSafeSync(`npm`, ["i", "--ignore-scripts", "--force"], {+ spawnSafe_1.spawnSafeSync(`npm`, ["i", "--ignore-scripts", "--force", `${packageDetails.name}@${packageVersion}`], {
cwd: tmpRepoNpmRoot,
stdio: "ignore",
});
The text was updated successfully, but these errors were encountered:
Not sure I can follow this patch ... the dependency does not get installed via a CLI parameter, but from a temporary created package.json which contains the version of that package.
See
Show of hands -- how many people have run patch-package on itself???
The text was updated successfully, but these errors were encountered: