File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ yarn add $1
66alias patch-package=./node_modules/.bin/patch-package
77
88export NODE_ENV=" development"
9- export CI=" "
9+ export CI=" true "
1010
1111(>&2 echo " SNAPSHOT: at dev time patch-package fails but returns 0" )
1212if ! patch-package;
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ export function runIntegrationTest({
4040 {
4141 cwd : tmpDir . name ,
4242 throwOnError : false ,
43+ env : {
44+ ...process . env ,
45+ PATCH_PACKAGE_INTEGRATION_TEST : "1" ,
46+ } ,
4347 shell : true ,
4448 } ,
4549 )
Original file line number Diff line number Diff line change @@ -75,10 +75,12 @@ if (argv.version || argv.v) {
7575 } else {
7676 console . log ( "Applying patches..." )
7777 const reverse = ! ! argv [ "reverse" ]
78- // don't want to exit(1) on postinsall locally.
78+ // don't want to exit(1) on postinstall locally.
7979 // see https://github.com/ds300/patch-package/issues/86
8080 const shouldExitWithError =
81- ! ! argv [ "error-on-fail" ] || isCI || process . env . NODE_ENV === "test"
81+ ! ! argv [ "error-on-fail" ] ||
82+ ( isCI && ! process . env . PATCH_PACKAGE_INTEGRATION_TEST ) ||
83+ process . env . NODE_ENV === "test"
8284
8385 const shouldExitWithWarning = ! ! argv [ "error-on-warn" ]
8486
You canβt perform that action at this time.
0 commit comments