File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
support/packages/local-npm/lib Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function publish(projects) {
9494
9595 console . log ( ` ${ pkgId } ` ) ;
9696
97- run ( 'npm' , 'unpublish' , pkgId ) ;
97+ run ( 'npm' , 'unpublish' , pkgId , { lenient : true } ) ;
9898 run ( 'yarn' , 'cache' , 'clean' , pkgId ) ;
9999 } ) ;
100100
@@ -150,6 +150,7 @@ function registrySet(which) {
150150
151151function run ( cmd , ...args ) {
152152 let options = {
153+ lenient : false , // set to true to ignore error return codes
153154 shell : true ,
154155 stdio : 'pipe' ,
155156 } ;
@@ -171,7 +172,7 @@ function run(cmd, ...args) {
171172 process . exit ( 1 ) ;
172173 }
173174
174- if ( result . status !== 0 ) {
175+ if ( ! options . lenient && result . status !== 0 ) {
175176 if ( result . stdout ) {
176177 console . error ( result . stdout . toString ( ) ) ;
177178 console . error ( result . stderr . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments