diff --git a/packages/aws-cdk-lib/core/lib/app.ts b/packages/aws-cdk-lib/core/lib/app.ts index adbbf2a7b1be1..a1be81ba46ddc 100644 --- a/packages/aws-cdk-lib/core/lib/app.ts +++ b/packages/aws-cdk-lib/core/lib/app.ts @@ -192,7 +192,7 @@ export class App extends Stage { if (autoSynth) { // synth() guarantees it will only execute once, so a default of 'true' // doesn't bite manual calling of the function. - process.once('beforeExit', () => this.synth({warnInsteadOfError: true})); + process.once('beforeExit', () => this.synth({ warnInsteadOfError: true })); } this._treeMetadata = props.treeMetadata ?? true; diff --git a/packages/aws-cdk-lib/core/lib/stage.ts b/packages/aws-cdk-lib/core/lib/stage.ts index 0ed6a0bf5de67..2de7923ad8894 100644 --- a/packages/aws-cdk-lib/core/lib/stage.ts +++ b/packages/aws-cdk-lib/core/lib/stage.ts @@ -1,10 +1,10 @@ import { IConstruct, Construct, Node } from 'constructs'; +import { Annotations } from './annotations'; import { Environment } from './environment'; import { PermissionsBoundary } from './permissions-boundary'; import { synthesize } from './private/synthesis'; import { IPolicyValidationPluginBeta1 } from './validation'; import * as cxapi from '../../cx-api'; -import { Annotations } from './annotations'; const STAGE_SYMBOL = Symbol.for('@aws-cdk/core.Stage');