mirror of https://github.com/buster-so/buster.git
64 lines
2.3 KiB
JSON
64 lines
2.3 KiB
JSON
{
|
|
"name": "@buster/database",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
},
|
|
"./helpers/*": {
|
|
"types": "./dist/helpers/*/index.d.ts",
|
|
"default": "./dist/helpers/*/index.js"
|
|
},
|
|
"./connection": {
|
|
"types": "./dist/connection.d.ts",
|
|
"default": "./dist/connection.js"
|
|
}
|
|
},
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
|
|
"build": "tsc",
|
|
"build:dry-run": "tsc",
|
|
"build:commonjs": "tsc --module commonjs --moduleResolution node",
|
|
"build:commonjs:watch": "npm run build:commonjs && tsc --module commonjs --moduleResolution node --watch",
|
|
"db:check": "drizzle-kit check",
|
|
"db:generate": "drizzle-kit generate",
|
|
"db:generate:custom": "drizzle-kit generate --custom",
|
|
"db:introspect": "drizzle-kit introspect",
|
|
"db:migrate": "drizzle-kit migrate",
|
|
"db:pull": "drizzle-kit pull",
|
|
"db:push": "drizzle-kit push",
|
|
"db:reset": "supabase db reset",
|
|
"db:seed": "bun run scripts/setup-db.ts && bun run scripts/seed.ts",
|
|
"db:start-supabase": "supabase start",
|
|
"db:stop": "supabase stop",
|
|
"db:studio": "drizzle-kit studio",
|
|
"db:init": "echo 'dev:init should be run from turbo.json' && true",
|
|
"dev": "tsc --watch",
|
|
"lint": "biome check --write",
|
|
"stop": "pnpm run db:stop",
|
|
"start": "echo 'Running db:init from turbo.json' && pnpm run db:init",
|
|
"test": "vitest run",
|
|
"test:unit": "DATABASE_URL=mock://test SUPABASE_URL=mock://test SUPABASE_SERVICE_ROLE_KEY=mock SUPABASE_ANON_KEY=mock vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests",
|
|
"test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
|
|
"test:coverage": "vitest run --coverage",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@buster/env-utils": "workspace:*",
|
|
"@buster/typescript-config": "workspace:*",
|
|
"@buster/vitest-config": "workspace:*",
|
|
"ai": "catalog:",
|
|
"drizzle-kit": "^0.31.4",
|
|
"drizzle-orm": "catalog:",
|
|
"drizzle-zod": "^0.8.2",
|
|
"lru-cache": "^11.1.0",
|
|
"postgres": "^3.4.7",
|
|
"zod": "catalog:"
|
|
}
|
|
}
|