Commonization of condition for linking node packages

This commit is contained in:
Ilya Goncharov
2019-10-09 14:23:03 +03:00
parent bcbc408892
commit bf0b4f6878
@@ -91,9 +91,8 @@ internal class KotlinRootNpmResolver internal constructor(
}
val upToDate = forceUpToDate || upToDateChecks.all { it.upToDate }
val hasExternalNpmDependencies = allNpmPackages.any { it.externalNpmDependencies.isNotEmpty() }
val hasNodeModulesDependent = projectResolvers.values.any { it.taskRequirements.hasNodeModulesDependentTasks }
if (hasExternalNpmDependencies || hasNodeModulesDependent) {
val hasNodeModulesDependentTasks = projectResolvers.values.any { it.taskRequirements.hasNodeModulesDependentTasks }
if (hasNodeModulesDependentTasks) {
nodeJs.packageManager.resolveRootProject(rootProject, allNpmPackages, upToDate)
}