(SOLVED) Hi everyone, I just located an issue with...
# prisma-whats-new
m
(SOLVED) Hi everyone, I just located an issue with the typescript boilerplate: In the typescript boilerplate there is a file
src/generated/prisma.ts
with the header text:
Copy code
# THIS FILE HAS BEEN AUTO-GENERATED BY "PRISMA DEPLOY"
# DO NOT EDIT THIS FILE DIRECTLY
However, when I delete the file and redeploy, it does not get regenerated and
yarn dev
gives an error complaining that it is not there. This is a problem, since any auto generated files should be regenerated and not statically expected. I ran into this issue when migrating an existing node-prisma app to typescript. Any help?
Mhhh, nevermind, it does get regenerated in the typescript boilerplate, sorry for the overreaction 🙂 what part of the config is needed to generate this file? Ill try to dig deeper myself!
found it in `.graphqlconfig.yml`:
Copy code
prepare-binding:
        output: src/generated/prisma.ts
        generator: prisma-ts
plase excuse my stupid interruption 🤒
n
hey @Moritz that part has been confusing to others already 🙂 I wonder how we can better cover it in our documentation.
prisma deploy
has a hook for
graphql prepare
, which checks the
prepare-binding
information in
.graphqlconfig.yml
.
m
@nilan thank you, that makes sense. I just overlooked the
graphqlconfig.yml