Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

more clean up

Sara Vieira91cd9f57c195
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index 40c4336430..4ac7ab9b92 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -17,10 +17,6 @@
},
"main": "src/index.ts",
"types": "src/index.ts",
- "files": [
- "README.md",
- "!*.test.*"
- ],
"license": "MIT",
"private": false,
"dependencies": {
diff --git a/packages/prisma-client/src/index.ts b/packages/prisma-client/src/index.ts
index c199f058f4..adcafa20ee 100644
--- a/packages/prisma-client/src/index.ts
+++ b/packages/prisma-client/src/index.ts
@@ -1,25 +1,2 @@
-import { PrismaClient, Prisma } from "@prisma/client";
-import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
-import type {
- InstanceProps,
- Project,
- User,
- Breakpoints,
- Asset,
-} from "@prisma/client";
-
-declare global {
- // allow global `var` declarations
- // eslint-disable-next-line no-var
- var prisma: PrismaClient | undefined;
-}
-
-// this fixes the issue with `warn(prisma-client) There are already 10 instances of Prisma Client actively running.`
-// explanation here
-// https://www.prisma.io/docs/guides/database/troubleshooting-orm/help-articles/nextjs-prisma-client-dev-practices
-export const prisma = global.prisma || new PrismaClient();
-
-if (process.env.NODE_ENV !== "production") global.prisma = prisma;
-
-export { Prisma, PrismaClientKnownRequestError };
-export type { InstanceProps, Project, User, Breakpoints, Asset };
+export * from "./prisma";
+export * from "./types";
diff --git a/packages/prisma-client/src/prisma.ts b/packages/prisma-client/src/prisma.ts
new file mode 100644
index 0000000000..e56bcdb8cf
--- /dev/null
+++ b/packages/prisma-client/src/prisma.ts
@@ -0,0 +1,17 @@
+import { PrismaClient, Prisma } from "@prisma/client";
+import { PrismaClientKnownRequestError } from "@prisma/client/runtime";
+
+declare global {
+ // allow global `var` declarations
+ // eslint-disable-next-line no-var
+ var prisma: PrismaClient | undefined;
+}
+
+// this fixes the issue with `warn(prisma-client) There are already 10 instances of Prisma Client actively running.`
+// explanation here
+// https://www.prisma.io/docs/guides/database/troubleshooting-orm/help-articles/nextjs-prisma-client-dev-practices
+export const prisma = global.prisma || new PrismaClient();
+
+if (process.env.NODE_ENV !== "production") global.prisma = prisma;
+
+export { Prisma, PrismaClientKnownRequestError };
diff --git a/packages/prisma-client/src/types.ts b/packages/prisma-client/src/types.ts
new file mode 100644
index 0000000000..29fbef7a4c
--- /dev/null
+++ b/packages/prisma-client/src/types.ts
@@ -0,0 +1,7 @@
+export type {
+ InstanceProps,
+ Project,
+ User,
+ Breakpoints,
+ Asset,
+} from "@prisma/client";
diff --git a/packages/react-sdk/src/db/types.ts b/packages/react-sdk/src/db/types.ts
index eb9a90138f..9a576bfa73 100644
--- a/packages/react-sdk/src/db/types.ts
+++ b/packages/react-sdk/src/db/types.ts
@@ -10,5 +10,3 @@ export type Tree = {
export type InstanceProps = Omit<DbInstanceProps, "props"> & {
props: Array<UserProp>;
};
-
-export type { DbInstanceProps };