From 56e1cdc3b63b04adeb360560069edada30e4a5dd Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 18 Mar 2024 15:39:38 -0400 Subject: [PATCH] chore: empty the contents of the sdkVersions.properties file when writing to it (#5916) --- codegen/smithy-aws-typescript-codegen/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codegen/smithy-aws-typescript-codegen/build.gradle.kts b/codegen/smithy-aws-typescript-codegen/build.gradle.kts index cf6bb338d78c..21a43823519a 100644 --- a/codegen/smithy-aws-typescript-codegen/build.gradle.kts +++ b/codegen/smithy-aws-typescript-codegen/build.gradle.kts @@ -51,6 +51,8 @@ tasks.register("set-aws-sdk-versions") { mkdir("$buildDir/generated/resources/software/amazon/smithy/aws/typescript/codegen") var versionsFile = file("$buildDir/generated/resources/software/amazon/smithy/aws/typescript/codegen/sdkVersions.properties") + versionsFile.printWriter().close() + var roots = project.file("../../packages").listFiles().toMutableList() + project.file("../../clients").listFiles().toList() roots.forEach { packageDir -> var packageJsonFile = File(packageDir, "package.json")