File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
packages/cli/src/lib/plugins Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @rnef/cli ' : patch
3+ ---
4+
5+ fix: remote-cache list returninig undefined instead of empty
Original file line number Diff line number Diff line change @@ -57,15 +57,14 @@ async function remoteCache({
5757 switch ( action ) {
5858 case 'list' : {
5959 const artifacts = await remoteBuildCache . list ( { artifactName } ) ;
60- if ( artifacts ) {
60+ const artifact = artifacts [ 0 ] ;
61+ if ( artifact ) {
6162 if ( isJsonOutput ) {
62- console . log ( JSON . stringify ( artifacts [ 0 ] , null , 2 ) ) ;
63+ console . log ( JSON . stringify ( artifact , null , 2 ) ) ;
6364 } else {
64- logger . log ( `- name: ${ artifacts [ 0 ] . name }
65- - url: ${ artifacts [ 0 ] . url } ` ) ;
65+ logger . log ( `- name: ${ artifact . name }
66+ - url: ${ artifact . url } `) ;
6667 }
67- } else {
68- throw new RnefError ( `No artifacts found for "${ artifactName } ".` ) ;
6968 }
7069 break ;
7170 }
You can’t perform that action at this time.
0 commit comments