From e78df91925150a98fcde8a121e2e6eb25e561ca4 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Sun, 19 Jul 2026 23:38:20 +0200 Subject: [PATCH] ci: fix the PluginDef sanity check (default import, not p.default) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check imported the default export as `p` and then read `p.default` — a double-default that is always undefined for a module using `export default plugin`, so the build job failed on every push (publish skipped) and v0.2.x never actually published through CI. Read the default import directly. Co-Authored-By: Claude Fable 5 --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ebce249..1d7d7fd 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: run: bunx tsc --noEmit - name: Sanity — plugin default export is a valid PluginDef run: | - bun -e 'import p from "./dist/index.js"; const d = p.default; if (d?.name !== "rom-manager" || typeof d?.main !== "function") { console.error("bad default export", d); process.exit(1); } console.log("ok:", d.name)' + bun -e 'import plugin from "./dist/index.js"; if (plugin?.name !== "rom-manager" || typeof plugin?.main !== "function") { console.error("bad default export", plugin); process.exit(1); } console.log("ok:", plugin.name)' publish: needs: build