From 51bc65e671526684ecdeae1be0cb57857b1fe9eb Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Wed, 17 Apr 2024 15:57:13 +0200 Subject: [PATCH] Avoid logging expected error messages to the console --- src/bin/keycloakify/buildOptions/getNpmWorkspaceRootDirPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/keycloakify/buildOptions/getNpmWorkspaceRootDirPath.ts b/src/bin/keycloakify/buildOptions/getNpmWorkspaceRootDirPath.ts index a51a7e8c..99215304 100644 --- a/src/bin/keycloakify/buildOptions/getNpmWorkspaceRootDirPath.ts +++ b/src/bin/keycloakify/buildOptions/getNpmWorkspaceRootDirPath.ts @@ -26,7 +26,7 @@ export function getNpmWorkspaceRootDirPath(params: { reactAppRootDirPath: string const cwd = pathResolve(pathJoin(...[reactAppRootDirPath, ...Array(depth).fill("..")])); try { - child_process.execSync("npm config get", { cwd: cwd }); + child_process.execSync("npm config get", { cwd, "stdio": ["pipe", "pipe", "pipe"] }); } catch (error) { if (String(error).includes("ENOWORKSPACES")) { assert(cwd !== pathSep, "NPM workspace not found");