Skip to content

Commit c20aa22

Browse files
authored
fix: check for args.binaryPath before bailing with no app.tar.gz (#479)
* fix: check for args.binaryPath before bailing with no app.tar.gz * changeset
1 parent 501ec82 commit c20aa22

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/young-toys-grab.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@rnef/cli': patch
3+
---
4+
5+
fix: check for args.binaryPath before bailing with no app.tar.gz

packages/cli/src/lib/plugins/remoteCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async function remoteCache({
132132
const isAppDirectory = fs.statSync(binaryPath).isDirectory();
133133
if (isAppDirectory) {
134134
const appName = path.basename(binaryPath);
135-
if (!fs.existsSync(absoluteTarballPath)) {
135+
if (args.binaryPath && !fs.existsSync(absoluteTarballPath)) {
136136
throw new RnefError(
137137
`No tarball found for "${artifactName}" in "${localArtifactPath}".`
138138
);

0 commit comments

Comments
 (0)