From dba19165dd90b098ac7dde7bc6beae3521804bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Leuth=C3=A4user?= <1417198+max-leuthaeuser@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:09:51 +0100 Subject: [PATCH] Relaxing pnpm and yarn checks / logging (#259) It is not an error if we do not find pnpm or yarn as we will always default back to npm. --- .../js2cpg/preprocessing/TranspilingEnvironment.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala index 76cba3ab..aeafd5dd 100644 --- a/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala +++ b/src/main/scala/io/shiftleft/js2cpg/preprocessing/TranspilingEnvironment.scala @@ -79,7 +79,7 @@ trait TranspilingEnvironment { logger.debug(s"\t+ pnpm is available: $result") true case Failure(_) => - logger.error("\t- pnpm is not installed. Transpiling sources will not be available.") + logger.debug("\t- pnpm is not installed.") false } } @@ -91,7 +91,7 @@ trait TranspilingEnvironment { logger.debug(s"\t+ yarn is available: $result") true case Failure(_) => - logger.error("\t- yarn is not installed. Transpiling sources will not be available.") + logger.debug("\t- yarn is not installed.") false } }