@vibecodeapp/cloud-studio 0.2.0 → 0.2.1
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/server/index.js +4 -0
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -2380,6 +2380,10 @@ async function loadPrismaClient() {
|
|
|
2380
2380
|
const prismaPath = join2(process.cwd(), ...pathSegments);
|
|
2381
2381
|
try {
|
|
2382
2382
|
const prismaModule = await import(pathToFileURL(prismaPath).href);
|
|
2383
|
+
if (!prismaModule.PrismaClient) {
|
|
2384
|
+
errors.push(`${prismaPath}: Module does not export PrismaClient`);
|
|
2385
|
+
continue;
|
|
2386
|
+
}
|
|
2383
2387
|
PrismaClientConstructor = prismaModule.PrismaClient;
|
|
2384
2388
|
if (prismaModule.Prisma?.dmmf?.datamodel) {
|
|
2385
2389
|
cachedSchema = prismaModule.Prisma.dmmf.datamodel;
|