efiber-prisma-schema 2.0.2 → 2.0.3
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 +9 -1
- package/{index.ts → index.js} +1 -3
- package/package.json +4 -4
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
|
-
|
|
5
|
+
|
|
6
|
+
// Re-export classes and namespace
|
|
7
|
+
export { Prisma, PrismaClient }
|
|
8
|
+
|
|
9
|
+
// Export the configured prisma instance
|
|
10
|
+
export declare const prisma: PrismaClient
|
package/{index.ts → index.js}
RENAMED
|
@@ -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
|
|
11
|
-
export { Prisma, PrismaClient }
|
|
12
|
-
export { prisma }
|
|
10
|
+
export { Prisma, PrismaClient, prisma }
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efiber-prisma-schema",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Database schema for eFiber",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "index.
|
|
6
|
+
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./index.d.ts",
|
|
11
|
-
"import": "./index.
|
|
11
|
+
"import": "./index.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
|
-
"index.
|
|
15
|
+
"index.js",
|
|
16
16
|
"index.d.ts",
|
|
17
17
|
"prisma/schema.prisma",
|
|
18
18
|
"prisma/generated/",
|