Skip to content

Commit 0507cd6

Browse files
authored
chore: avoid copying unit test files on staging sdk to release folder (#306)
1 parent e92c16e commit 0507cd6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codegen/sdk-codegen/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ fun generateSmithyBuild(services: List<AwsService>): String {
8585
// escape windows paths for valid json
8686
val absModelPath = service.modelFile.absolutePath.replace("\\", "\\\\")
8787
val importPaths = mutableListOf(absModelPath)
88-
//TODO: Re-enable after we figure out how to release
89-
// if (file(service.modelExtrasDir).exists()) {
90-
// importPaths.add(service.modelExtrasDir.replace("\\", "\\\\"))
91-
// }
88+
if (file(service.modelExtrasDir).exists()) {
89+
importPaths.add(service.modelExtrasDir.replace("\\", "\\\\"))
90+
}
9291
val imports = importPaths.joinToString { "\"$it\"" }
9392
"""
9493
"${service.projectionName}": {
@@ -190,6 +189,7 @@ task("stageSdks") {
190189
from("${it.outputDir}")
191190
into("${it.destinationDir}")
192191
exclude("Package.swift")
192+
exclude("*Tests")
193193
}
194194
}
195195
}

0 commit comments

Comments
 (0)