Skip to content

Publishing with JSX/TSX breaks module doc #1120

Open
@notcome

Description

@notcome

Module doc added to a JSX file is ignored to the auto-added pragmas. Here is one example:

/** @jsxRuntime automatic *//** @jsxImportSource npm:react@^19.1.0 *//** @jsxImportSourceTypes npm:@types/react@^19.1.4 *//** @jsxFactory React.createElement *//** @jsxFragmentFactory React.Fragment *//**
 * A module providing accordion components for collapsible content sections.
 *
 * @see https://ui.shadcn.com/docs/components/accordion
 * @module
 */

This also breaks deno doc (no module doc before the first symbol):

$ deno doc jsr:@isofucius/deno-shadcn-ui/default/ui/accordion

Defined in https://jsr.io/@isofucius/deno-shadcn-ui/0.0.3/src/default/ui/accordion.tsx:35:7

const Accordion: React.FC<React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>>
  A vertically stacked set of interactive headings that each reveal a section of content.
  This is the root component that contains all accordion items.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions