@wozcode/supabase
v0.1.1
Published
WozCode Supabase schema to TypeScript generator
Readme
@wozcode/supabase
WozCode Supabase CLI tools.
Generate TypeScript types from Postgres SQL files
npx @wozcode/supabase gen-types \
--schema-dir ./supabase/schemas \
--out ./supabase/functions/_shared-client/generated-db-types.tsYou can also use positional arguments:
npx @wozcode/supabase gen-types ./supabase/schemas ./supabase/functions/_shared-client/generated-db-types.tsOptions:
--schema-dir <path>: directory containing Postgres schema.sqlfiles.--out <path>: generated TypeScript output path.--schema <name>: schema to expose. Defaults topublic.--nullable-view-columns: make view columns nullable for PostgREST compatibility.--cwd <path>: base directory for resolving relative paths. Defaults to the current working directory.--verbose: print generation inputs.
