KT-34468 Yarn. Dependency check at the beginning

This commit is contained in:
Victor Turansky
2020-03-23 20:31:41 +03:00
committed by Ilya Goncharov
parent c2b3dd8b33
commit d494881cb9
@@ -120,7 +120,10 @@ abstract class YarnBasics : NpmApi {
?.value ?.value
else null else null
if (deps != null) { if (deps == null) {
error("Cannot find $key in yarn.lock")
}
src.resolvedVersion = deps.version src.resolvedVersion = deps.version
src.integrity = deps.integrity src.integrity = deps.integrity
src.dependencies.addAll(deps.dependencies.map { dep -> src.dependencies.addAll(deps.dependencies.map { dep ->
@@ -136,9 +139,6 @@ abstract class YarnBasics : NpmApi {
child child
}) })
} else {
error("Cannot find $key in yarn.lock")
}
return src return src
} }