MichalLytek / type-graphql

Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
https://typegraphql.com
MIT License
8.02k stars 675 forks source link

Version 2.0.0 emit schema docs example doesn't work #1500

Closed sclarke-rivian closed 1 year ago

sclarke-rivian commented 1 year ago

Given the dist/build changes in the version 2 release candidates, this line does not work anymore. Is there a workaround?

https://github.com/MichalLytek/type-graphql/blob/f50d1d0af5b7b90d3d4b69c873188030f7740f48/website/versioned_docs/version-2.0.0-beta.3/emit-schema.md?plain=1#L49

MichalLytek commented 1 year ago

Just use the async fs directly - write and mkdir recursive.

I will upgrade the code to fs/promises and update the docs.

MichalLytek commented 1 year ago

Docs upgraded, closing the issue 😉