efiber-prisma-schema 2.0.2 → 2.0.4

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/index.d.ts CHANGED
@@ -1,2 +1,10 @@
1
+ import { PrismaClient, Prisma } from './prisma/generated/client.js'
2
+
3
+ // Re-export all types from generated client
1
4
  export type * from './prisma/generated/client.js'
2
- export { Prisma, PrismaClient, prisma } from './index.js'
5
+
6
+ // Re-export classes and namespace
7
+ export { Prisma, PrismaClient }
8
+
9
+ // Export the configured prisma instance
10
+ export declare const prisma: PrismaClient
@@ -7,6 +7,4 @@ const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL })
7
7
  const adapter = new PrismaPg(pool)
8
8
  const prisma = new PrismaClient({ adapter })
9
9
 
10
- export type * from './prisma/generated/client.js'
11
- export { Prisma, PrismaClient }
12
- export { prisma }
10
+ export { Prisma, PrismaClient, prisma }
package/package.json CHANGED
@@ -1,18 +1,12 @@
1
1
  {
2
2
  "name": "efiber-prisma-schema",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Database schema for eFiber",
5
5
  "type": "module",
6
- "main": "index.ts",
6
+ "main": "index.js",
7
7
  "types": "index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./index.d.ts",
11
- "import": "./index.ts"
12
- }
13
- },
14
8
  "files": [
15
- "index.ts",
9
+ "index.js",
16
10
  "index.d.ts",
17
11
  "prisma/schema.prisma",
18
12
  "prisma/generated/",