File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,11 +262,13 @@ export async function deployStack(options: DeployStackOptions): Promise<DeploySt
262262 ? templateParams . updateExisting ( finalParameterValues , cloudFormationStack . parameters )
263263 : templateParams . supplyAll ( finalParameterValues ) ;
264264
265+ const hotswapMode = options . hotswap ?? HotswapMode . FULL_DEPLOYMENT ;
266+
265267 if ( await canSkipDeploy ( options , cloudFormationStack , stackParams . hasChanges ( cloudFormationStack . parameters ) ) ) {
266268 debug ( `${ deployName } : skipping deployment (use --force to override)` ) ;
267269 // if we can skip deployment and we are performing a hotswap, let the user know
268270 // that no hotswap deployment happened
269- if ( options . hotswap !== HotswapMode . FULL_DEPLOYMENT ) {
271+ if ( hotswapMode !== HotswapMode . FULL_DEPLOYMENT ) {
270272 print ( `\n ${ ICON } %s\n` , chalk . bold ( 'hotswap deployment skipped - no changes were detected (use --force to override)' ) ) ;
271273 }
272274 return {
@@ -289,8 +291,7 @@ export async function deployStack(options: DeployStackOptions): Promise<DeploySt
289291 parallel : options . assetParallelism ,
290292 } ) ;
291293
292- const hotswapMode = options . hotswap ;
293- if ( hotswapMode && hotswapMode !== HotswapMode . FULL_DEPLOYMENT ) {
294+ if ( hotswapMode !== HotswapMode . FULL_DEPLOYMENT ) {
294295 // attempt to short-circuit the deployment if possible
295296 try {
296297 const hotswapDeploymentResult = await tryHotswapDeployment (
You can’t perform that action at this time.
0 commit comments