@trycompai/db 1.0.5 → 1.0.6

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.
package/dist/types.mjs CHANGED
@@ -1,9 +1,2 @@
1
- import {
2
- __reExport,
3
- __toESM,
4
- require_client
5
- } from "./chunk-I3YC3IVF.mjs";
6
-
7
1
  // src/types.ts
8
- var types_exports = {};
9
- __reExport(types_exports, __toESM(require_client()));
2
+ export * from "@prisma/client";
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.5",
4
+ "version": "1.0.6",
5
5
  "dependencies": {
6
6
  "@prisma/client": "6.9.0",
7
7
  "prisma": "6.9.0"
@@ -52,7 +52,7 @@
52
52
  },
53
53
  "scripts": {
54
54
  "build": "bun run db:generate && tsup",
55
- "clean": "rm -rf .turbo node_modules dist src/generated",
55
+ "clean": "rm -rf .turbo node_modules dist",
56
56
  "db:generate": "bunx prisma generate",
57
57
  "db:migrate": "bunx prisma migrate dev",
58
58
  "db:push": "bunx prisma db push",
@@ -63,23 +63,24 @@
63
63
  "docker:down": "docker-compose down",
64
64
  "docker:up": "docker-compose up -d",
65
65
  "lint": "prettier --check 'src/**/*.{ts,tsx,js,jsx,json}' 'prisma/**/*.prisma' && tsc --noEmit",
66
- "postbuild": "cp -r prisma dist/ && cp src/*.d.ts dist/ || echo 'Copy failed'",
66
+ "postbuild": "cp -r prisma dist/ || echo 'No prisma directory to copy'",
67
+ "postinstall": "prisma generate --schema=./dist/prisma/schema.prisma || echo 'Prisma generate failed - please run manually: prisma generate --schema=./node_modules/@trycompai/db/dist/prisma/schema.prisma'",
67
68
  "typecheck": "tsc --noEmit"
68
69
  },
69
- "tsup": {
70
- "entry": [
71
- "src/index.ts",
72
- "src/types.ts"
73
- ],
74
- "format": [
75
- "cjs",
76
- "esm"
77
- ],
78
- "dts": false,
79
- "clean": true,
80
- "external": [
81
- "@prisma/client/runtime/library"
82
- ]
83
- },
70
+ "tsup": {
71
+ "entry": [
72
+ "src/index.ts",
73
+ "src/types.ts"
74
+ ],
75
+ "format": [
76
+ "cjs",
77
+ "esm"
78
+ ],
79
+ "dts": true,
80
+ "clean": true,
81
+ "external": [
82
+ "@prisma/client"
83
+ ]
84
+ },
84
85
  "types": "./dist/index.d.ts"
85
86
  }
@@ -2,7 +2,6 @@ generator client {
2
2
  provider = "prisma-client-js"
3
3
  previewFeatures = ["driverAdapters", "postgresqlExtensions", "prismaSchemaFolder"]
4
4
  binaryTargets = ["native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x"]
5
- output = "../src/generated/client"
6
5
  }
7
6
 
8
7
  datasource db {