Files
metabuilder/config/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

27 lines
936 B
JSON

{
"name": "@metabuilder/config",
"version": "0.0.0",
"private": true,
"scripts": {
"generate:package": "npx ts-node scripts/generate-package.ts",
"extract:preview": "cd frontends/nextjs && npm run extract:preview",
"extract:quick": "cd frontends/nextjs && npm run extract:quick",
"extract:auto": "cd frontends/nextjs && npm run extract:auto",
"extract:all": "cd frontends/nextjs && npm run extract:all",
"extract:help": "cd frontends/nextjs && npm run extract:help",
"db:generate": "npx prisma generate --schema=../dbal/shared/prisma/schema.prisma",
"db:migrate": "npx prisma migrate dev --schema=../dbal/shared/prisma/schema.prisma"
},
"devDependencies": {
"@prisma/client": "^7.2.0",
"prisma": "^7.2.0",
"yaml": "^2.8.2"
},
"dependencies": {
"@prisma/adapter-better-sqlite3": "^7.2.0",
"better-sqlite3": "^12.5.0",
"clsx": "^2.1.1",
"jszip": "^3.10.1"
}
}