2323val tzdbVersion: String by rootProject.properties
2424version = " $tzdbVersion -spi.$version "
2525
26- val convertedKtFilesDir = File (project.buildDir, " wasmWasi -full/src/internal/tzData" )
26+ val convertedKtFilesDir = File (project.buildDir, " convertedTimesZones -full/src/internal/tzData" )
2727val tzdbDirectory = File (project.projectDir, " tzdb" )
2828
2929val timeTzdbInstall by tasks.creating(NpmTask ::class ) {
@@ -34,7 +34,9 @@ val timeTzdbInstall by tasks.creating(NpmTask::class) {
3434}
3535
3636val tzdbDownloadAndCompile by tasks.creating(NpxTask ::class ) {
37- tzdbDirectory.mkdirs()
37+ doFirst {
38+ tzdbDirectory.mkdirs()
39+ }
3840 dependsOn(timeTzdbInstall)
3941 command.set(" @tubular/time-tzdb" )
4042 args.addAll(" -b" , " -o" , " --large" )
@@ -44,7 +46,7 @@ val tzdbDownloadAndCompile by tasks.creating(NpxTask::class) {
4446 args.add(tzdbDirectory.toString())
4547}
4648
47- val generateWasmWasiZoneInfo by tasks.registering {
49+ val generateZoneInfo by tasks.registering {
4850 inputs.dir(tzdbDirectory)
4951 outputs.dir(convertedKtFilesDir)
5052 doLast {
@@ -71,7 +73,7 @@ kotlin {
7173 commonMain {
7274 dependencies {
7375 compileOnly(project(" :kotlinx-datetime" ))
74- kotlin.srcDir(generateWasmWasiZoneInfo )
76+ kotlin.srcDir(generateZoneInfo )
7577 }
7678 }
7779
0 commit comments