()
| 27 | import { getConfigDir } from './app-config' |
| 28 | |
| 29 | export function getCustomThemesDir(): string { |
| 30 | return path.join(getConfigDir(), 'themes') |
| 31 | } |
| 32 | |
| 33 | /** A bare slug/name that resolves to a direct child of the themes dir. */ |
| 34 | function isSafeSlug(slug: unknown): slug is string { |
no test coverage detected