Skip to content

Commit ffb9284

Browse files
committed
move to cdk-constructs
1 parent e7ac1d5 commit ffb9284

6 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/deploymentUtils/src/changesets/checkDestructiveChanges.ts renamed to packages/cdkConstructs/src/changesets/checkDestructiveChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export async function checkDestructiveChangeSet(
142142
})
143143

144144
if (remainingChanges.length === 0) {
145-
console.log(`Change set ${changeSetName} for stack ${stackName} has no destructive changes.`)
145+
console.log(`Change set ${changeSetName} for stack ${stackName} has no destructive changes that are not waived.`)
146146
return
147147
}
148148

packages/cdkConstructs/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from "./config/index.js"
66
export * from "./utils/helpers.js"
77
export * from "./stacks/deleteUnusedStacks.js"
88
export * from "./nag/pack/epsNagPack.js"
9+
export * from "./changesets/checkDestructiveChanges"

packages/deploymentUtils/tests/changesets/checkDestructiveChanges.test.ts renamed to packages/cdkConstructs/tests/changesets/checkDestructiveChanges.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ describe("checkDestructiveChangeSet", () => {
118118
expect(mockCloudFormationSend).toHaveBeenCalledTimes(1)
119119
const command = mockCloudFormationSend.mock.calls[0][0] as { input: { ChangeSetName: string; StackName: string } }
120120
expect(command.input).toEqual({ChangeSetName: "cs", StackName: "stack"})
121-
expect(logSpy).toHaveBeenCalledWith("Change set cs for stack stack has no destructive changes.")
121+
expect(logSpy).toHaveBeenCalledWith("Change set cs for stack stack has no destructive changes that are not waived.")
122122
expect(errorSpy).not.toHaveBeenCalled()
123123
})
124124

@@ -166,7 +166,7 @@ describe("checkDestructiveChangeSet", () => {
166166

167167
expect(mockCloudFormationSend).toHaveBeenCalledTimes(1)
168168
expect(logSpy).toHaveBeenCalledWith(expect.stringContaining("Allowing destructive change ResourceToRemove"))
169-
expect(logSpy).toHaveBeenCalledWith("Change set cs for stack stack has no destructive changes.")
169+
expect(logSpy).toHaveBeenCalledWith("Change set cs for stack stack has no destructive changes that are not waived.")
170170
expect(errorSpy).not.toHaveBeenCalled()
171171
})
172172

packages/deploymentUtils/tests/changesets/examples/destructive_changeset.json renamed to packages/cdkConstructs/tests/changesets/examples/destructive_changeset.json

File renamed without changes.

packages/deploymentUtils/tests/changesets/examples/safe_changeset.json renamed to packages/cdkConstructs/tests/changesets/examples/safe_changeset.json

File renamed without changes.

packages/deploymentUtils/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ export * from "./specifications/deployApi"
22
export * from "./specifications/writeSchemas"
33
export * from "./specifications/deleteProxygenDeployments"
44
export * from "./config/index"
5-
export * from "./changesets/checkDestructiveChanges"

0 commit comments

Comments
 (0)