mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add logs to diagnose broken pnpm
This commit is contained in:
parent
f7589160af
commit
644b51795a
1 changed files with 9 additions and 0 deletions
|
|
@ -5,6 +5,12 @@ export function runPnpmCommand(args, toolName = "pnpm") {
|
|||
try {
|
||||
let result;
|
||||
|
||||
ui.writeInformation(
|
||||
`Executing ${toolName} with arguments:`,
|
||||
args.join(" ")
|
||||
);
|
||||
ui.writeInformation("----------------------------");
|
||||
|
||||
if (toolName === "pnpm") {
|
||||
result = spawnSync("pnpm", args, { stdio: "inherit" });
|
||||
} else if (toolName === "pnpx") {
|
||||
|
|
@ -13,6 +19,9 @@ export function runPnpmCommand(args, toolName = "pnpm") {
|
|||
throw new Error(`Unsupported tool name for aikido-pnpm: ${toolName}`);
|
||||
}
|
||||
|
||||
ui.writeInformation("----------------------------");
|
||||
ui.writeInformation(`${toolName} process exited with code:`, result.status);
|
||||
|
||||
if (result.status !== null) {
|
||||
return { status: result.status };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue