Skip to content

Commit 2044098

Browse files
committed
build: ignore folders prefixed with underscore
1 parent 3a7b352 commit 2044098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/blog.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class BlogService {
2020
const folderContents = await readdir(this.config.blogPostsFolder, { withFileTypes: true });
2121
return folderContents
2222
.filter(dirent => dirent.isDirectory())
23+
.filter(dirent => !dirent.name.startsWith('_'))
2324
.map(dirent => dirent.name);
2425
}
2526

0 commit comments

Comments
 (0)