File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ export type InheritableResources = {
1616export const getInheritableResources = ( prefix : string ) : InheritableResources => [
1717 ...resources
1818 . filter ( ( { file} ) => pathExists ( prefix , file ) )
19- . map ( ( { type} ) => ( {
19+ . map ( ( { type, db } ) => ( {
2020 type,
21- path : prefix
21+ path : prefix ,
22+ db : db ?? true
2223 } ) ) ,
2324 ...readPublicDir ( prefix )
2425 . map ( ( subdir ) => `${ prefix } /${ subdir } ` )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const addRelativeDir = ({relativeDir}: {relativeDir: string}) => () => (t
3131 const publisher = relativeDir . split ( "/" ) [ 0 ] ;
3232 const pubStart = `/${ publisher } /` ;
3333 const updatedLink = ( url : string ) =>
34- / h t t p s ? : \/ \/ / . test ( url ) || url . startsWith ( pubStart ) ? url
34+ / h t t p s ? : \/ \/ / . test ( url ) || url . startsWith ( pubStart ) || url [ 0 ] === "#" ? url
3535 : url . startsWith ( "//" ) ? url . slice ( 1 )
3636 : url . startsWith ( "/" ) ? `/${ publisher } ${ url } `
3737 : `/${ relativeDir } /${ url } ` ;
You can’t perform that action at this time.
0 commit comments