feat: Set up npm workspace structure for DBAL integration

Workspace Setup Complete:
- Added dbal/development to root package.json workspaces
- Added @metabuilder/dbal dependency to frontends/nextjs (file reference)
- Updated TypeScript paths in frontend to resolve via node_modules
- Installed workspace dependencies successfully

Structure Now In Place:
 dbal/development is registered as workspace
 @metabuilder/dbal dependency declared in frontend
 Path aliases configured for @/dbal resolution
 npm install works with all dependencies

Pre-existing DBAL Build Issues Found:
⚠️ src/core/foundation/types/types.generated missing
⚠️ CodeGen script (tsx ../shared/tools/codegen/gen_types.ts) failing
⚠️ exactOptionalPropertyTypes causing TypeScript errors in KV operations

These are pre-existing issues in DBAL code, not related to workspace setup.
Will need separate DBAL build fix task.

For now, workspace structure is ready for when DBAL build is fixed.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-15 01:26:32 +00:00
parent 897e69cb8c
commit fa765e493a
5 changed files with 11 additions and 5 deletions

View File

@@ -47,7 +47,11 @@
"Bash(DATABASE_URL=file:../../prisma/prisma/dev.db npm run db:push:*)",
"Bash(git add:*)",
"Bash(git commit:*)",
"Bash(tree:*)"
"Bash(tree:*)",
"Bash(npx tsc:*)",
"Bash(npm run build:*)",
"Bash(npm run codegen:*)",
"Bash(npm:*)"
]
},
"spinnerTipsEnabled": false

View File

@@ -7,8 +7,8 @@
* DBAL only manages the loading and application of that seed data.
*
* Seed data hierarchy:
* 1. /seed/database/ - Base system bootstrap data (YAML format)
* 2. packages/*/seed/metadata.json - Package-specific seed data
* 1. /seed/database - Base system bootstrap data (YAML format)
* 2. packages/[packageId]/seed/metadata.json - Package-specific seed data
*/
import type { DBALClient } from '../core/client'

View File

@@ -27,6 +27,7 @@
"db:migrate": "prisma migrate deploy --schema=../../prisma/schema.prisma"
},
"dependencies": {
"@metabuilder/dbal": "file:../../dbal/development",
"@monaco-editor/react": "^4.7.0",
"@octokit/core": "^7.0.6",
"@prisma/adapter-better-sqlite3": "^7.2.0",

View File

@@ -44,10 +44,10 @@
"../../fakemui/*"
],
"@/dbal": [
"../../dbal/development/src"
"../../node_modules/@metabuilder/dbal"
],
"@/dbal/*": [
"../../dbal/development/src/*"
"../../node_modules/@metabuilder/dbal/*"
],
"@dbal-ui/*": [
"../../dbal/shared/ui/*"

View File

@@ -19,6 +19,7 @@
"test:e2e:report": "playwright show-report"
},
"workspaces": [
"dbal/development",
"frontends/nextjs",
"frontends/dbal",
"config",