Undo move of files to safe-chain

This commit is contained in:
Sander Declerck 2025-08-05 13:35:40 +02:00
parent b29bc2e6dc
commit 8fe228c476
No known key found for this signature in database
68 changed files with 7 additions and 10 deletions

View file

@ -0,0 +1,17 @@
import { execSync } from "child_process";
import { ui } from "../../environment/userInteraction.js";
export function runYarnCommand(args) {
try {
const npxCommand = `yarn ${args.join(" ")}`;
execSync(npxCommand, { stdio: "inherit" });
} catch (error) {
if (error.status) {
return { status: error.status };
} else {
ui.writeError("Error executing command:", error.message);
return { status: 1 };
}
}
return { status: 0 };
}