File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @codama/renderers-js ' : patch
3+ ---
4+
5+ Fix bug that did not camelcase exported modules properly
Original file line number Diff line number Diff line change 1- import { CamelCaseString } from '@codama/nodes' ;
1+ import { camelCase } from '@codama/nodes' ;
22
33import { Fragment , getExportAllFragment , mergeFragments } from '../utils' ;
44
5- export function getIndexPageFragment ( items : { name : CamelCaseString } [ ] ) : Fragment | undefined {
5+ export function getIndexPageFragment ( items : { name : string } [ ] ) : Fragment | undefined {
66 if ( items . length === 0 ) return ;
77
88 const names = items
9- . map ( item => item . name )
9+ . map ( item => camelCase ( item . name ) )
1010 . sort ( ( a , b ) => a . localeCompare ( b ) )
1111 . map ( name => getExportAllFragment ( `./${ name } ` ) ) ;
1212
You can’t perform that action at this time.
0 commit comments