From d7299d5a44f4396cbdbc3cfb2207640f8625fdd1 Mon Sep 17 00:00:00 2001 From: Chase Coalwell <782571+srchase@users.noreply.github.com> Date: Fri, 30 Jun 2023 09:40:00 -0600 Subject: [PATCH] fix(codegen): remove deprecated packages from sdkVersions.properties (#4898) --- codegen/smithy-aws-typescript-codegen/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-typescript-codegen/build.gradle.kts b/codegen/smithy-aws-typescript-codegen/build.gradle.kts index 0be2997c0722..127ab6c0c6f4 100644 --- a/codegen/smithy-aws-typescript-codegen/build.gradle.kts +++ b/codegen/smithy-aws-typescript-codegen/build.gradle.kts @@ -57,7 +57,10 @@ tasks.register("set-aws-sdk-versions") { var packageJson = Node.parse(packageJsonFile.readText()).expectObjectNode() var packageName = packageJson.expectStringMember("name").getValue() var packageVersion = packageJson.expectStringMember("version").getValue() - versionsFile.appendText("$packageName=$packageVersion\n") + var isPrivate = packageJson.getBooleanMemberOrDefault("private", false) + if (!isPrivate) { + versionsFile.appendText("$packageName=$packageVersion\n") + } } } }