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

Configure Feed

Select the types of activity you want to include in your feed.

fix/cli: subdirectory path separators on windows need to be converted to unix

authored by

uwx and committed by
Tangled
53c37459 f3c7752f

+10 -1
+10 -1
cli/commands/deploy.ts
··· 71 71 return ig 72 72 } 73 73 74 + function toUnixPath(p: string): string { 75 + // A backslash is a path separator on Windows 76 + if (process.platform === "win32") { 77 + return p.replace(/\\/g, "/") 78 + } 79 + // on Unix systems, you're typically allowed to have backslashes in file names 80 + return p 81 + } 82 + 74 83 function collectFiles(dir: string, ig: Ignore, baseDir: string): FileInfo[] { 75 84 const files: FileInfo[] = [] 76 85 77 86 const entries = readdirSync(dir, { withFileTypes: true }) 78 87 for (const entry of entries) { 79 88 const fullPath = join(dir, entry.name) 80 - const relativePath = relative(baseDir, fullPath) 89 + const relativePath = toUnixPath(relative(baseDir, fullPath)) 81 90 82 91 // The ignore package needs trailing '/' for directory-pattern matching 83 92 const isDir = entry.isDirectory()