@rudderhq/cli 0.6.2-canary.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5651,12 +5651,11 @@ async function assertRuntimePostgresBinDirComplete(cacheDir, binDir) {
5651
5651
  missing.push(path7.join(templateDir, "postgresql.conf.sample"));
5652
5652
  }
5653
5653
  const shareDir = resolveRuntimePostgresShareDir(binDir, templateDir);
5654
- try {
5655
- const timezoneStats = await stat2(path7.join(shareDir, "timezone"));
5656
- if (!timezoneStats.isDirectory()) missing.push(path7.join(shareDir, "timezone"));
5657
- } catch {
5658
- missing.push(path7.join(shareDir, "timezone"));
5659
- }
5654
+ const hasTimezoneDir = (await Promise.all([
5655
+ path7.join(templateDir, "timezone"),
5656
+ path7.join(shareDir, "timezone")
5657
+ ].map((candidate) => stat2(candidate).catch(() => null)))).some((candidate) => candidate?.isDirectory());
5658
+ if (!hasTimezoneDir) missing.push(path7.join(shareDir, "timezone"));
5660
5659
  }
5661
5660
  if (missing.length > 0) {
5662
5661
  throw new RuntimeInstallError(