test(supabase): equine seed + storage pgTAP on both engines; docs for Step 4b; upload script resolves from caller dir
This commit is contained in:
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'),
|
||||
|
||||
Reference in new issue
Block a user