Seed files use process.cwd

This commit is contained in:
adilallo committed 2026-05-23 17:44:48 -06:00
1 parent 200b9f8c9e
commit e64ba640c8
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -11,7 +11,8 @@ import {
sectionFacetsSchema,
} from "../../lib/server/validation/methodFacetsSchemas";
const REPO_ROOT = path.resolve(__dirname, "..", "..");
// Bundled seed runs from repo root (`process.cwd()`); __dirname breaks under esbuild.
const REPO_ROOT = process.cwd();
const DATA_DIR = path.join(REPO_ROOT, "data", "create", "customRule");
/**