pantharshit00 / prisma-docs-generator

Prisma generator for automatically generating documentation reference from the Prisma schema.
MIT License
579 stars 27 forks source link

Support for direct execution #77

Open garysb opened 5 months ago

garysb commented 5 months ago

When specifying the provider you currently need to specify executing 'node node_modules/...' because the default cli action is to return an error about trying to start the server. Can the default executables action be to generate the documentation so the provider can be defined as follows (and so other solutions such as Bun can be used):

provider = "prisma-docs-generator"

The providers are automatically executed during the generate process so we should not need to manually execute node and we should definately not need to specify the node_modules path as this will break with tools such as Yarn berry, pnpm workspaces, and bun.