From 2195244bdcd6610491f880c559779f035d2d1ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Maisse?= Date: Mon, 8 Jun 2020 20:27:09 +0200 Subject: [PATCH] fixup! refactor: create a `executeCommand` function and use it for every `yarn` or `npm` calls --- lib/cli/src/js-package-manager/JsPackageManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/src/js-package-manager/JsPackageManager.ts b/lib/cli/src/js-package-manager/JsPackageManager.ts index 54a81a945c4e..39e0c78f873c 100644 --- a/lib/cli/src/js-package-manager/JsPackageManager.ts +++ b/lib/cli/src/js-package-manager/JsPackageManager.ts @@ -224,6 +224,6 @@ export abstract class JsPackageManager { throw new Error(commandResult.stderr.toString()); } - return commandResult.stdout.toString(); + return commandResult.stdout ? commandResult.stdout.toString() : ''; } }