test(supabase): equine seed + storage pgTAP on both engines; docs for Step 4b; upload script resolves from caller dir

This commit is contained in:
bchanot committed 2026-10-09 00:38:49 +02:00
1 parent 52bfc11553
commit e5a0445b19
1 file changed
+5 -1
@@ -44,7 +44,11 @@ async function readVerified(dir: string, entry: AssetEntry): Promise<Buffer> {
}
async function main(): Promise<void> {
const dir = resolve(process.argv[2] ?? '.')
// pnpm runs package scripts inside the package: resolve from the caller's directory.
const dir = resolve(
process.env.INIT_CWD ?? process.cwd(),
process.argv[2] ?? '.',
)
const client = createClient(
requireEnv('SUPABASE_URL'),
requireEnv('SUPABASE_SERVICE_ROLE_KEY'),