(dir: string)
| 85 | relative(contentDir, path).split(sep).join("/") |
| 86 | |
| 87 | const readMeta = (dir: string): MetaJson | undefined => { |
| 88 | const path = join(dir, "meta.json") |
| 89 | return existsSync(path) ? JSON.parse(readFileSync(path, "utf8")) : undefined |
| 90 | } |
| 91 | |
| 92 | const isDir = (path: string) => existsSync(path) && statSync(path).isDirectory() |
| 93 |
no test coverage detected