try esm action

This commit is contained in:
Pullfrog Action
2025-11-06 19:00:07 -05:00
parent 5a21d40d27
commit 7ef44eb254
9 changed files with 86 additions and 410 deletions
+1 -8
View File
@@ -37,11 +37,4 @@ async function run(): Promise<void> {
}
}
// Only run main action if INPUTS_JSON is set (running as GitHub Action)
// When SDK spawns MCP server, it calls createMcpServer() directly
if (process.env.INPUTS_JSON) {
// Wrap in IIFE to avoid top-level await in CJS
(async () => {
await run();
})();
}
await run();