feat(supabase): @faunosteo/supabase package with PGlite harness and typed client

- tests/db: PGlite (PostgreSQL 17 WASM) applies the Supabase shim + migrations and
  runs supabase/tests/*.sql through pgTAP without Docker
- schema-types test pins tables, columns, enums, RPC args, RLS-on, no using(true)
- database.types.ts in supabase gen types format; createBrowserClient (PKCE)
- Supabase CLI pinned as root devDependency; db:* root scripts
This commit is contained in:
bchanot committed 2026-10-08 22:20:54 +02:00
1 parent 2d5ff0c33e
commit ce76c6597a
15 files changed
+1020 -2

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
export {
createBrowserClient,
type FaunosteoClient,
type SupabaseConnection,
} from './client'
export type {
Database,
Enums,
Json,
Tables,
TablesInsert,
TablesUpdate,
} from './database.types'
export { Constants } from './database.types'
import type { Enums, Tables } from './database.types'
/** Row of public.profiles. */
export type Profile = Tables<'profiles'>
/** Row of public.profile_roles. */
export type ProfileRole = Tables<'profile_roles'>
/** owner | admin | moderator | support. Not a professional status. */
export type PlatformRole = Enums<'platform_role'>