Files
metabuilder/package.json
johndoe6345789 d2aabb6cdb refactor: Move seed and Prisma schema into DBAL (Architecture Restructure Phase 0)
MOVED:
- /seed/ → /dbal/shared/seeds/
  - database/ (installed_packages.yaml, package_permissions.yaml)
  - config/ (bootstrap.yaml, package-repo.yaml)
  - packages/ (core-packages.yaml)
- /prisma/schema.prisma → /dbal/development/prisma/schema.prisma

UPDATED:
- Root package.json: db:* scripts delegate to dbal/development
- Frontend package.json: db:* scripts delegate to dbal/development
- DBAL package.json: Added db:migrate and db:seed scripts
- /dbal/development/src/seeds/index.ts: Updated paths to new seed location
- /dbal/shared/tools/codegen/gen_prisma_schema.js: Output to new schema location
- /config/package.json: Updated schema path references

DELETED:
- /seed/ folder (moved to DBAL)
- /prisma/ folder (moved to DBAL)

BENEFITS:
- DBAL is now self-contained and independently deployable
- Single source of truth for seeds and schema
- Clear separation: database logic in DBAL, frontend in /frontends/
- All db:* commands now go through DBAL, not duplicated in frontend

This restructure is MANDATORY FIRST STEP before CODEBASE_RECOVERY_PLAN execution.
Architecture must be fixed before code cleanup happens.

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

34 lines
1.1 KiB
JSON

{
"name": "metabuilder-root",
"private": true,
"version": "0.0.0",
"description": "MetaBuilder - Data-driven multi-tenant platform",
"scripts": {
"db:generate": "npm --prefix dbal/development run db:generate",
"db:push": "npm --prefix dbal/development run db:push",
"db:migrate": "npm --prefix dbal/development run db:migrate",
"db:seed": "npm --prefix dbal/development run db:seed",
"dev": "npm --prefix frontends/nextjs run dev",
"build": "npm --prefix frontends/nextjs run build",
"typecheck": "npm --prefix frontends/nextjs run typecheck",
"lint": "npm --prefix frontends/nextjs run lint",
"test": "npm --prefix frontends/nextjs run test",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug",
"test:e2e:report": "playwright show-report"
},
"workspaces": [
"dbal/development",
"frontends/nextjs",
"frontends/dbal",
"config",
"storybook"
],
"devDependencies": {
"@playwright/test": "^1.57.0",
"jsdom": "^27.4.0"
}
}