paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
679 stars 55 forks source link

Add more generic line separator in getting models and enums regexp #336

Closed theArina closed 3 weeks ago

theArina commented 3 weeks ago

So I was using paljs for quite a long time, but one day for some reason it just generated empty adminSettings.json and I struggled a lot debugging and finding out what was the problem, and the problem was this. It failed to read schema because of the different line separators. So, I am doing this pull-request just so the regexp would be more universal and nobody else have to deal with such non-obvious hard-to-findable issue. P.S. Thank you for the library.