Skip to content

Commit

Permalink
fix: generated files not being in build output
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Nov 25, 2023
1 parent 7b8859f commit 93fb79f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 2 additions & 3 deletions packages/server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 93fb79f

Please sign in to comment.