Skip to content

Commit

Permalink
fix yarn lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed May 29, 2024
1 parent b845a9d commit 4169ce3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import nl.littlerobots.vcu.plugin.versionSelector
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradlePluginExtension
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradleSubplugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnLockMismatchReport
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

Expand Down Expand Up @@ -153,8 +154,10 @@ tasks {
distributionType = Wrapper.DistributionType.BIN
}
}
extensions.findByType<YarnRootExtension>()?.run {
yarnLockMismatchReport = YarnLockMismatchReport.WARNING
reportNewYarnLock = true
yarnLockAutoReplace = false
rootProject.plugins.withType<YarnPlugin>().configureEach {
rootProject.the<YarnRootExtension>().apply {
yarnLockMismatchReport = YarnLockMismatchReport.WARNING // NONE | FAIL | FAIL_AFTER_BUILD
reportNewYarnLock = true
yarnLockAutoReplace = true
}
}

0 comments on commit 4169ce3

Please sign in to comment.