mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
DBAL Improvements: - Move Prisma schema to DBAL ownership (dbal/development/prisma/schema.prisma) - Create Prisma client factory (getPrismaClient, createPrismaClient) - Create DBAL client factory (getDBALClient, useDBAL) - Set up seed orchestration structure to load from /seed/ folder - Add db scripts to DBAL package.json (db:generate, db:push, db:studio) - Export all factories and seedDatabase from DBAL Architecture Documentation: - Create ARCHITECTURE.md: Complete blueprint and data flow explanation - Update CLAUDE.md: Clear guidance to avoid common bot errors - Clarify /schemas folder as source of truth for architecture - Emphasize seed data in /seed/, not in TypeScript code - Show correct patterns: getDBALClient(), entity operations Status: - Phase 1 (DBAL Improvements): COMPLETE - Phase 2 (Next.js Cleanup): PENDING - Phase 3 (Build System): PENDING Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "@metabuilder/dbal",
|
|
"version": "1.0.0",
|
|
"description": "Database Abstraction Layer for MetaBuilder",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "vitest",
|
|
"test:unit": "vitest run --coverage",
|
|
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
"test:conformance": "tsx tests/conformance/runner.ts",
|
|
"lint": "eslint src/**/*.ts",
|
|
"format": "prettier --write src/**/*.ts",
|
|
"codegen": "tsx ../shared/tools/codegen/gen_types.ts",
|
|
"codegen:prisma": "node ../shared/tools/codegen/gen_prisma_schema.js",
|
|
"generate-types": "node ../shared/tools/codegen/generate-types.js",
|
|
"db:generate": "prisma generate --schema=prisma/schema.prisma",
|
|
"db:push": "prisma db push --schema=prisma/schema.prisma",
|
|
"db:studio": "prisma studio --schema=prisma/schema.prisma"
|
|
},
|
|
"keywords": [
|
|
"database",
|
|
"abstraction",
|
|
"orm",
|
|
"prisma",
|
|
"sqlite",
|
|
"security"
|
|
],
|
|
"author": "MetaBuilder Contributors",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.958.0",
|
|
"@aws-sdk/lib-storage": "^3.958.0",
|
|
"@aws-sdk/s3-request-presigner": "^3.958.0",
|
|
"@prisma/adapter-better-sqlite3": "^7.2.0",
|
|
"@prisma/client": "^7.2.0",
|
|
"better-sqlite3": "^12.5.0",
|
|
"prisma": "^7.2.0",
|
|
"zod": "^4.2.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^25.0.3",
|
|
"@vitest/coverage-v8": "^4.0.16",
|
|
"eslint": "^9.39.2",
|
|
"prettier": "^3.7.4",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.16"
|
|
}
|
|
}
|