jsr icon indicating copy to clipboard operation
jsr copied to clipboard

Publishing with JSX/TSX breaks module doc

Open notcome opened this issue 7 months ago • 0 comments

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.

notcome avatar May 21 '25 14:05 notcome