From 93fb79ff4a946b313c2579e2c960bd4501b6c15c Mon Sep 17 00:00:00 2001 From: geisterfurz007 Date: Sat, 25 Nov 2023 11:45:48 +0100 Subject: [PATCH] fix: generated files not being in build output --- package.json | 2 +- packages/server/package.json | 1 + packages/server/prisma/schema.prisma | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ae0a8ba2..75cfcc57 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "format:check": "prettier --check packages", "format:write": "prettier --write packages", "server:dev": "yarn workspace @yestheory.family/server start", - "server:generate": "yarn workspace @yestheory.family/server packages/server/prisma generate", + "server:generate": "yarn workspace @yestheory.family/server generate", "storybook": "yarn workspace @yestheory.family/web storybook", "test": "yarn workspaces foreach run test", "web:dev": "yarn workspace @yestheory.family/web dev", diff --git a/packages/server/package.json b/packages/server/package.json index 4ee34bcb..3eb105c7 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "build": "tsc", + "generate": "prisma generate", "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --max-warnings=0", "postinstall": "prisma generate", "start": "ts-node-dev --files src/index.ts", diff --git a/packages/server/prisma/schema.prisma b/packages/server/prisma/schema.prisma index 5cf6e8c0..c05b551d 100644 --- a/packages/server/prisma/schema.prisma +++ b/packages/server/prisma/schema.prisma @@ -4,9 +4,8 @@ generator client { } generator typegraphql { - provider = "typegraphql-prisma" - output = "../src/__generated__/type-graphql" - emitTranspiledCode = true + provider = "typegraphql-prisma" + output = "../src/__generated__/type-graphql" } datasource db {