From 109b2abe4c713624e731afa1b82c3c1a3ba064c9 Mon Sep 17 00:00:00 2001 From: Frank <88225527+frankpengau@users.noreply.github.com> Date: Wed, 17 Jan 2024 07:33:49 +1100 Subject: [PATCH] fix(cloudformation-diff): Fix aws-sdk dependency issue (#28680) Missing dependency when exporting `@aws-cdk/cloudformation-diff` in custom AWS Construct Library. Closes #28679 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts b/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts index 055bc3be8248b..433eda0b5a10d 100644 --- a/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts +++ b/packages/@aws-cdk/cloudformation-diff/lib/diff-template.ts @@ -1,7 +1,6 @@ // The SDK is only used to reference `DescribeChangeSetOutput`, so the SDK is added as a devDependency. // The SDK should not make network calls here -// eslint-disable-next-line import/no-extraneous-dependencies -import { CloudFormation } from 'aws-sdk'; +import type { CloudFormation } from 'aws-sdk'; import * as impl from './diff'; import * as types from './diff/types'; import { deepEqual, diffKeyedEntities, unionOf } from './diff/util';