UNPKG

@silvana-one/coordination

Version:

Silvana Coordination Client

21 lines 687 B
export async function buildMovePackage(path) { const { execSync } = await import("child_process"); let bytes = undefined; console.log("Running sui client publish command..."); try { const output = execSync(`sui move build --dump-bytecode-as-base64 --ignore-chain --path ${path}`, { encoding: "utf-8", }); bytes = JSON.parse(output); if (!bytes) { throw new Error("Error building package"); } return bytes; //console.log("Command output:", bytes); } catch (error) { console.error("Error running command:", error); throw error; } } //# sourceMappingURL=build.js.map