fix: satisfy production workspace build

This commit is contained in:
lucaronin
2026-05-08 00:56:24 +02:00
parent ef3aed64e3
commit 5e7d29f620
8 changed files with 29 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ function compareVaultContainmentPath(path: string, vaultPath: string): [string,
}
export function canWritePathToVault(path: string, vaultPath: string | readonly string[]): boolean {
if (Array.isArray(vaultPath)) {
if (typeof vaultPath !== 'string') {
return vaultPath.some((candidate) => canWritePathToVault(path, candidate))
}
const trimmedVaultPath = vaultPath.trim()