Files
metabuilder/dbal/development/package.json
johndoe6345789 a37e1fdcec refactor: Move Prisma schema to /dbal/shared (source of truth)
The Prisma schema is the single source of truth for the entire system
and should live in shared, not in development-specific location.

MOVED:
- /dbal/development/prisma/schema.prisma → /dbal/shared/prisma/schema.prisma

UPDATED:
- DBAL package.json: db:* scripts reference ../shared/prisma/schema.prisma
- config package.json: schema reference updated
- gen_prisma_schema.js: outputs to shared location

STRUCTURE NOW:
- /dbal/shared/prisma/ - Prisma schema (source of truth)
- /dbal/shared/seeds/ - Seed data (YAML files)
- /dbal/development/ - Uses shared schema via relative path

This ensures:
 Single source of truth for schema
 Schema is shared across all implementations (Phase 2 TypeScript, Phase 3 C++)
 Development just references the shared schema
 Independent deployability maintained

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 02:19:44 +00:00

56 lines
1.8 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=../shared/prisma/schema.prisma",
"db:push": "prisma db push --schema=../shared/prisma/schema.prisma",
"db:migrate": "prisma migrate deploy --schema=../shared/prisma/schema.prisma",
"db:studio": "prisma studio --schema=../shared/prisma/schema.prisma",
"db:seed": "tsx ../shared/seeds/load-and-apply.ts"
},
"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"
}
}