Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>,
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;
Loading