Is there a good way to set up a build process for ...
# graphql-nexus
a
Is there a good way to set up a build process for
makeSchema
when using typescript? All the types aren't generated until you run it, meaning the build will always output errors unless you've built it previously
r
@Adam In that case, you can run a generate script something like:
Copy code
"generate:nexus": "ts-node --transpile-only ./src/schema",
before a first-time build so that the types are generated correctly. This would also be useful for CI environments where the types are not available beforehand.