- Add @tpmjs/db package with Prisma ORM setup - Define Tool model with NPM metadata and TPMJS fields - Define SyncCheckpoint model for tracking sync worker progress - Define SyncLog model for audit trail of sync operations - Add Prisma client singleton with dev logging - Add seed script for initializing sync checkpoints - Include comprehensive README with setup instructions Package includes: - Complete Prisma schema matching NPM_MIRROR.md spec - Three models: Tool, SyncCheckpoint, SyncLog - Indexes for performance on key fields - TypeScript support via @tpmjs/tsconfig - Scripts for db:migrate, db:push, db:studio, db:seed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
235 B
JSON
11 lines
235 B
JSON
{
|
|
"extends": "@tpmjs/tsconfig/base.json",
|
|
"compilerOptions": {
|
|
"outDir": "dist",
|
|
"rootDir": ".",
|
|
"incremental": false,
|
|
"composite": false
|
|
},
|
|
"include": ["src", "prisma"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|