@syntopica/db-quality 0.2.0 → 0.2.1

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/cli.js CHANGED
@@ -2761,6 +2761,9 @@ var findSqliteFiles = (root) => {
2761
2761
  return found.sort();
2762
2762
  };
2763
2763
 
2764
+ // src/config/hasPostgrestSources.ts
2765
+ var hasPostgrestSources = (root, name) => sourceFilesUnder(root, [name]).length > 0;
2766
+
2764
2767
  // src/config/hasSupabaseJsDependency.ts
2765
2768
  import { existsSync as existsSync15, readFileSync as readFileSync10 } from "fs";
2766
2769
  import { join as join21 } from "path";
@@ -2784,7 +2787,7 @@ var detectStacks = (root) => {
2784
2787
  (name) => isDirectory(join22(root, name))
2785
2788
  );
2786
2789
  const postgrestRoots = ["src", "app", "supabase/functions"].filter(
2787
- (name) => isDirectory(join22(root, name))
2790
+ (name) => isDirectory(join22(root, name)) && hasPostgrestSources(root, name)
2788
2791
  );
2789
2792
  return {
2790
2793
  ...isDirectory(join22(root, "supabase/migrations")) ? { supabase: { migrations: "supabase/migrations" } } : {},