ci: fix default-export sanity check (default export IS the plugin)
CI / exporter (push) Successful in 11s
CI / build (push) Successful in 22s
CI / publish (push) Has been skipped

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-18 23:37:48 +02:00
parent aef88842d2
commit f77790db05
+1 -1
View File
@@ -46,7 +46,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 !== "playnite" || typeof d?.main !== "function") { console.error("bad default export", d); process.exit(1); } console.log("ok:", d.name)'
bun -e 'import p from "./dist/index.js"; const d = p.default ?? p; if (d?.name !== "playnite" || typeof d?.main !== "function") { console.error("bad default export", d); process.exit(1); } console.log("ok:", d.name)'
exporter:
runs-on: ubuntu-24.04