Skip to content

deno publish fails: adminPluginFactory default export merged with a property (TS2652) #22

Closed

Description

@zumbrunn

deno publish --dry-run fails with TS2652: Merged declaration 'adminPluginFactory' cannot include a default export declaration. The factory is declared as export default function adminPluginFactory and then gets adminPluginFactory.pluginName = "admin"; JSR's generated type output rejects that. Introduced with the factory (0c40f61, in #17). Fix: declare the function, assign the property, then export default adminPluginFactory separately. Dry run passes with it.

Activity

  1. zumbrunn commented on Nov 10, 2026

    @zumbrunn
    MemberAuthor

    Released in 4.0.0 (4c1c293, tag v4.0.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions