From db85a984010660b04cd8f055755183620bc7a262 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Fri, 23 May 2025 10:07:38 +0200 Subject: [PATCH] feat: exit(0) if deploy skipped --- src/commands/deploy.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/deploy.ts b/src/commands/deploy.ts index 1190c295..960fe021 100644 --- a/src/commands/deploy.ts +++ b/src/commands/deploy.ts @@ -71,7 +71,7 @@ const executeDeploy = async (args?: string[]) => { await cliPreDeploy({config: satelliteConfig}); - await cliDeploy({ + const {result} = await cliDeploy({ config: satelliteConfig, listAssets: listExistingAssets, assertSourceDirExists, @@ -79,6 +79,10 @@ const executeDeploy = async (args?: string[]) => { uploadFile }); + if (result === 'skipped') { + process.exit(0); + } + await cliPostDeploy({config: satelliteConfig}); };