mirror of
https://github.com/tiennm99/bsk.git
synced 2026-06-18 23:39:20 +00:00
0a08f80450
- supabase/migrations/20260525163300_bsk_init.sql: bsk schema, app_role enum, app_users enrollment table, current_role() SECURITY DEFINER STABLE helper, RLS enabled with two SELECT policies (own row + admin) - types/supabase-bsk.ts: hand-written placeholder mirroring canonical supabase gen output; regenerate via pnpm db:gen-types after migration applied - lib/db/roles.ts: appRoles tuple + AppRole union + satisfies guard against generated enum + isAppRole type guard - package.json: db:gen-types script - README: one-line note on regenerating types after db:push - plans/: include phase 02/04/06 detail files alongside the existing 01/03/05 (planner output that wasn't committed with the trim)
59 lines
1.7 KiB
JSON
59 lines
1.7 KiB
JSON
{
|
|
"name": "bsk",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@11.1.1",
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"db:preflight": "tsx scripts/preflight-supabase.ts",
|
|
"db:push": "pnpm db:preflight && supabase db push",
|
|
"db:gen-types": "supabase gen types typescript --schema bsk > types/supabase-bsk.ts",
|
|
"check:no-secret-leak": "node scripts/check-no-secret-leak.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@hookform/resolvers": "^5.4.0",
|
|
"@react-pdf/renderer": "^4.5.1",
|
|
"@supabase/ssr": "^0.10.3",
|
|
"@supabase/supabase-js": "^2.106.1",
|
|
"@tanstack/react-table": "^8.21.3",
|
|
"@upstash/qstash": "^2.11.0",
|
|
"@upstash/ratelimit": "^2.0.8",
|
|
"@upstash/redis": "^1.38.0",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.3.0",
|
|
"date-fns-tz": "^3.2.0",
|
|
"lucide-react": "^0.546.0",
|
|
"next": "^16.2.6",
|
|
"next-intl": "^4.12.0",
|
|
"react": "^19.2.6",
|
|
"react-dom": "^19.2.6",
|
|
"react-hook-form": "^7.76.1",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.6.0",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3.3.5",
|
|
"@tailwindcss/postcss": "^4.3.0",
|
|
"@types/node": "^22.10.0",
|
|
"@types/react": "^19.2.15",
|
|
"@types/react-dom": "^19.2.3",
|
|
"eslint": "^9.36.0",
|
|
"eslint-config-next": "^16.2.6",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"postcss": "^8.5.15",
|
|
"prettier": "^3.8.3",
|
|
"prettier-plugin-tailwindcss": "^0.8.0",
|
|
"tailwindcss": "^4.3.0",
|
|
"tsx": "^4.22.3",
|
|
"typescript": "^5.9.2"
|
|
}
|
|
}
|