@trycompai/db 1.0.3 → 1.0.5

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,2 +1,9 @@
1
+ import {
2
+ __reExport,
3
+ __toESM,
4
+ require_client
5
+ } from "./chunk-I3YC3IVF.mjs";
6
+
1
7
  // src/types.ts
2
- export * from "@prisma/client";
8
+ var types_exports = {};
9
+ __reExport(types_exports, __toESM(require_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.3",
4
+ "version": "1.0.5",
5
5
  "dependencies": {
6
6
  "@prisma/client": "6.9.0",
7
7
  "prisma": "6.9.0"
@@ -22,11 +22,6 @@
22
22
  "types": "./dist/types.d.ts",
23
23
  "import": "./dist/types.mjs",
24
24
  "require": "./dist/types.js"
25
- },
26
- "./client": {
27
- "types": "./dist/client.d.ts",
28
- "import": "./dist/client.mjs",
29
- "require": "./dist/client.js"
30
25
  }
31
26
  },
32
27
  "files": [
@@ -57,7 +52,7 @@
57
52
  },
58
53
  "scripts": {
59
54
  "build": "bun run db:generate && tsup",
60
- "clean": "rm -rf .turbo node_modules dist",
55
+ "clean": "rm -rf .turbo node_modules dist src/generated",
61
56
  "db:generate": "bunx prisma generate",
62
57
  "db:migrate": "bunx prisma migrate dev",
63
58
  "db:push": "bunx prisma db push",
@@ -68,24 +63,23 @@
68
63
  "docker:down": "docker-compose down",
69
64
  "docker:up": "docker-compose up -d",
70
65
  "lint": "prettier --check 'src/**/*.{ts,tsx,js,jsx,json}' 'prisma/**/*.prisma' && tsc --noEmit",
71
- "postbuild": "cp -r prisma dist/ || echo 'No prisma directory to copy'",
72
- "postinstall": "prisma generate",
66
+ "postbuild": "cp -r prisma dist/ && cp src/*.d.ts dist/ || echo 'Copy failed'",
73
67
  "typecheck": "tsc --noEmit"
74
68
  },
75
- "tsup": {
76
- "entry": [
77
- "src/index.ts",
78
- "src/types.ts"
79
- ],
80
- "format": [
81
- "cjs",
82
- "esm"
83
- ],
84
- "dts": true,
85
- "clean": true,
86
- "external": [
87
- "@prisma/client"
88
- ]
89
- },
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
+ },
90
84
  "types": "./dist/index.d.ts"
91
85
  }
@@ -2,6 +2,7 @@ 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"
5
6
  }
6
7
 
7
8
  datasource db {
package/dist/index.d.mts DELETED
@@ -1,10 +0,0 @@
1
- import * as _prisma_client_runtime_library from '@prisma/client/runtime/library';
2
- import { PrismaClient } from '@prisma/client';
3
- export { Prisma, PrismaClient } from '@prisma/client';
4
-
5
- declare const db: PrismaClient<{
6
- datasourceUrl: string | undefined;
7
- log: ("warn" | "error")[];
8
- }, never, _prisma_client_runtime_library.DefaultArgs>;
9
-
10
- export { db };
package/dist/types.d.mts DELETED
@@ -1 +0,0 @@
1
- export * from '@prisma/client';