@levrbet/shared 0.1.182 → 0.1.184
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/package.json +4 -4
- package/prisma/schema.prisma +1 -0
- package/scripts/setup-prisma.js +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levrbet/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.184",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"test-get-healthy-indexer": "tsx src/core/indexers/indexers.service.ts"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@prisma/client": "^
|
|
45
|
+
"@prisma/client": "^6.0.0",
|
|
46
46
|
"@privy-io/react-auth": ">=3.0.0",
|
|
47
47
|
"@tanstack/react-query": ">=5.0.0",
|
|
48
48
|
"@types/react": ">=18.0.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@prisma/client": "^
|
|
66
|
+
"@prisma/client": "^6.0.0",
|
|
67
67
|
"@privy-io/react-auth": ">=3.0.0",
|
|
68
68
|
"@swc-node/register": "^1.11.1",
|
|
69
69
|
"@tanstack/react-query": ">=5.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@types/object-hash": "^3.0.6",
|
|
75
75
|
"@types/react": ">=18.0.0",
|
|
76
76
|
"cross-fetch": "^4.1.0",
|
|
77
|
-
"prisma": "^
|
|
77
|
+
"prisma": "^6.0.0",
|
|
78
78
|
"react": ">=18.0.0",
|
|
79
79
|
"tsx": "^4.20.6",
|
|
80
80
|
"typescript": "^5.9.3"
|
package/prisma/schema.prisma
CHANGED
package/scripts/setup-prisma.js
CHANGED
|
@@ -50,7 +50,6 @@ const projectRoot = findProjectRoot()
|
|
|
50
50
|
const schemaSource = path.join(__dirname, "..", "prisma", "schema.prisma")
|
|
51
51
|
const prismaDir = path.join(projectRoot, "prisma")
|
|
52
52
|
const schemaDest = path.join(prismaDir, "schema.prisma")
|
|
53
|
-
const configDest = path.join(projectRoot, "prisma.config.ts")
|
|
54
53
|
|
|
55
54
|
// Check if we're in the package itself (development mode) - skip setup
|
|
56
55
|
const ownPackageJson = path.join(__dirname, "..", "package.json")
|
|
@@ -85,23 +84,6 @@ try {
|
|
|
85
84
|
process.exit(1)
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
// Create prisma.config.ts if it doesn't exist
|
|
89
|
-
if (!fs.existsSync(configDest)) {
|
|
90
|
-
const configContent = `import type { PrismaConfig } from "prisma"
|
|
91
|
-
|
|
92
|
-
export default {
|
|
93
|
-
schema: "./prisma/schema.prisma",
|
|
94
|
-
datasource: {
|
|
95
|
-
url: process.env.MONGO_URI || "",
|
|
96
|
-
},
|
|
97
|
-
} satisfies PrismaConfig
|
|
98
|
-
`
|
|
99
|
-
fs.writeFileSync(configDest, configContent)
|
|
100
|
-
console.log("✅ Created prisma.config.ts")
|
|
101
|
-
} else {
|
|
102
|
-
console.log("ℹ️ prisma.config.ts already exists, skipping...")
|
|
103
|
-
}
|
|
104
|
-
|
|
105
87
|
// Generate Prisma client
|
|
106
88
|
console.log("\n🔄 Generating Prisma client...")
|
|
107
89
|
try {
|