keonik / prisma-erd-generator

Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate
https://www.npmjs.com/package/prisma-erd-generator
MIT License
894 stars 52 forks source link

fix: generator fails when path contains spaces #211

Closed maxijonson closed 1 year ago

maxijonson commented 1 year ago

Fixes #113

I had the issue myself and found the solution by editing the compiled .js files from the node_modules directory of my project. I wrapped everything that had file system paths in quotes (in both the mermaidCommand and parseDatamodel function) so that it is properly executed even when there are spaces in the directory path.

All (22) tests passed as well

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.7.0-alpha.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: