@trycompai/db 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -8,6 +8,9 @@ Database package with Prisma client and schema for Comp AI applications.
8
8
  npm install @trycompai/db @prisma/client
9
9
  # or
10
10
  bun add @trycompai/db @prisma/client
11
+
12
+ # Generate the Prisma client (one-time setup)
13
+ npx prisma generate --schema=node_modules/@trycompai/db/dist/prisma/schema.prisma
11
14
  ```
12
15
 
13
16
  ## Usage
@@ -35,7 +38,7 @@ DATABASE_URL="postgresql://user:password@localhost:5432/database"
35
38
 
36
39
  ## Key Features
37
40
 
38
- - ✅ **Zero setup**: Just install and use - no additional configuration needed
41
+ - ✅ **Minimal setup**: Just one command after installation
39
42
  - ✅ **Server-side only**: Safe for use in server environments
40
43
  - ✅ **Full TypeScript support**: Complete type definitions for all database models
41
44
  - ✅ **Pre-configured client**: Ready-to-use database connection with optimized settings
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trycompai/db",
3
3
  "description": "Database package with Prisma client and schema for Comp AI",
4
- "version": "1.0.7",
4
+ "version": "1.0.8",
5
5
  "peerDependencies": {
6
6
  "@prisma/client": "^6.9.0"
7
7
  },
@@ -65,6 +65,7 @@
65
65
  "docker:up": "docker-compose up -d",
66
66
  "lint": "prettier --check 'src/**/*.{ts,tsx,js,jsx,json}' 'prisma/**/*.prisma' && tsc --noEmit",
67
67
  "postbuild": "cp -r prisma dist/ || echo 'No prisma directory to copy'",
68
+ "postinstall": "prisma generate --schema=./dist/prisma/schema.prisma 2>/dev/null || echo 'Run: npx prisma generate --schema=node_modules/@trycompai/db/dist/prisma/schema.prisma'",
68
69
  "typecheck": "tsc --noEmit"
69
70
  },
70
71
  "tsup": {