Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

fix wispignore

+6 -3
+6 -3
cli/commands/deploy.ts
··· 52 52 'node_modules', 'node_modules/**', 'Thumbs.db', 'desktop.ini', 53 53 '._*', '.Spotlight-V100/**', '.Trashes/**', '.fseventsd/**', 54 54 '.cache/**', '.temp/**', '.tmp/**', '__pycache__/**', '*.pyc', 55 - '.venv/**', 'venv/**', '*.swp', '*.swo', '*~', '.tangled/**' 55 + '.venv/**', 'venv/**', '*.swp', '*.swo', '*~', '.tangled/**', 56 + '.wispignore' 56 57 ]; 57 58 58 59 function createIgnoreMatcher(siteDir: string): Ignore { ··· 80 81 const fullPath = join(dir, entry.name); 81 82 const relativePath = relative(baseDir, fullPath); 82 83 83 - if (ig.ignores(relativePath)) continue; 84 + // The ignore package needs trailing '/' for directory-pattern matching 85 + const isDir = entry.isDirectory(); 86 + if (ig.ignores(isDir ? relativePath + '/' : relativePath)) continue; 84 87 85 - if (entry.isDirectory()) { 88 + if (isDir) { 86 89 files.push(...collectFiles(fullPath, ig, baseDir)); 87 90 } else if (entry.isFile()) { 88 91 const stat = statSync(fullPath);