From 6f11536ff286d9d2437de540e73eec33192a13c8 Mon Sep 17 00:00:00 2001 From: zumbrunn Date: Sun, 8 Nov 2026 11:41:29 +0100 Subject: [PATCH] fix: export the plugin factory as a separate default so the package publishes 'export default function adminPluginFactory' next to 'adminPluginFactory.pluginName = ...' is a merged declaration; JSR's type output rejects it (TS2652), so 'deno publish' failed. Same runtime shape: a function with a pluginName property. Co-Authored-By: Claude Sonnet 5.5 --- mod.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mod.ts b/mod.ts index 602d373..f936a23 100644 --- a/mod.ts +++ b/mod.ts @@ -375,10 +375,15 @@ export function createAdminPlugin(opts: AdminPluginOptions): DunePlugin { * The plugin loader's entry point: `plugins: [{ src: jsr:@dune/plugin-admin@^4 }]` * calls this with the entry's config and `{ root, dev }`. */ -export default function adminPluginFactory( +function adminPluginFactory( _pluginConfig: Record, ctx: { root: string; dev: boolean }, ): DunePlugin { return createAdminPlugin({ root: ctx.root, dev: ctx.dev }); } adminPluginFactory.pluginName = "admin"; + +// A separate default export: declaring it inline (`export default function`) +// next to the property assignment above is a merged declaration, which JSR's +// type output rejects (TS2652) and so blocks `deno publish`. +export default adminPluginFactory;