about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 8bdc80e..261bed4 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -88,7 +88,7 @@ function walkDirectory(root: string, dir: string) {
       if (pathname.startsWith("index.html")) {
         const dir = relPath.replace("index.html", "");
         registerFile(relPath, dir, absPath, stat);
-        if (dir !== ".") {
+        if (dir !== "") {
           registerFile(relPath, dir + path.sep, absPath, stat);
         }
       }