File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
tools/pfe-tools/custom-elements-manifest/lib Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @patternfly/pfe-tools " : patch
3+ ---
4+ Fix the manifest helper's demo ` filePath ` field.
Original file line number Diff line number Diff line change @@ -314,7 +314,11 @@ export class Manifest {
314314 // strict removes all special characters from slug
315315 slug = slugify ( slug , { strict : true , lower : true } ) ;
316316 const primaryElementName = deslugify ( slug , options . rootDir ) ;
317- const filePath = demo . source ?. href . replace ( options . sourceControlURLPrefix , `${ options . rootDir } /` ) ?? '' ;
317+ const filePath =
318+ demo . source ?. href . replace (
319+ options . sourceControlURLPrefix ,
320+ `${ join ( options . rootDir , options . elementsDir ) } /` ,
321+ ) ?? '' ;
318322 const [ last = '' ] = filePath . split ( '/' ) . reverse ( ) ;
319323 const filename = last . replace ( '.html' , '' ) ;
320324 const isMainElementDemo = this . getTagNames ( ) . includes ( filename ) ;
You can’t perform that action at this time.
0 commit comments