Skip to content

Commit 28cdf7d

Browse files
committed
chore: ignore mdn and idl folders
1 parent 99e1b99 commit 28cdf7d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/build/utils/kdl.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ async function getAllKDLFileURLs(folder: URL, file: string): Promise<URL[]> {
116116
for (const entry of entries) {
117117
const child = new URL(entry.name + "/", folder);
118118

119-
if (entry.isDirectory()) {
119+
if (
120+
entry.isDirectory() &&
121+
!child.pathname.includes("mdn") &&
122+
!child.pathname.includes("idl")
123+
) {
120124
results.push(...(await getAllKDLFileURLs(child, file)));
121125
} else if (entry.isFile() && entry.name == file) {
122126
results.push(new URL(entry.name, folder));

0 commit comments

Comments
 (0)