Wrap runProxy in IIFE for cjs compatibility

This commit is contained in:
Sander Declerck 2025-12-04 15:34:41 +01:00
parent fbbca73ef6
commit b762d2ba69
No known key found for this signature in database

View file

@ -71,7 +71,9 @@ if (tool && tool.internalPackageManagerName === PIP_PACKAGE_MANAGER) {
} else if (command === "setup-ci") { } else if (command === "setup-ci") {
setupCi(); setupCi();
} else if (command === "run-proxy") { } else if (command === "run-proxy") {
await runProxy(process.argv.slice(2)); (async function () {
await runProxy(process.argv.slice(2));
})();
} else if (command === "--version" || command === "-v" || command === "-v") { } else if (command === "--version" || command === "-v" || command === "-v") {
(async () => { (async () => {
ui.writeInformation(`Current safe-chain version: ${await getVersion()}`); ui.writeInformation(`Current safe-chain version: ${await getVersion()}`);