Skip to content

Commit 270e7a8

Browse files
committed
Move the create node_modules command to evaluation
1 parent 0648310 commit 270e7a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,7 @@ subprojects {
119119
}
120120

121121

122-
val publishToNpm by registering(Exec::class) {
123-
doFirst {
124-
if(!File("$buildDir/node_module").exists()) {
125-
mkdir("$buildDir/node_module")
126-
}
127-
}
122+
val publishToNpm by creating(Exec::class) {
128123

129124
if(!File(rootDir, "Firebase").exists()) {
130125
dependsOn(
@@ -158,6 +153,11 @@ subprojects {
158153
// }
159154

160155
afterEvaluate {
156+
// create the projects node_modules if they don't exist
157+
if(!File("$buildDir/node_module").exists()) {
158+
mkdir("$buildDir/node_module")
159+
}
160+
161161
dependencies {
162162
"commonMainImplementation"(kotlin("stdlib-common"))
163163
"commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.4")

0 commit comments

Comments
 (0)