Brakebein / prisma-generator-nestjs-dto

Generates NestJS DTO classes from Prisma Schema
Apache License 2.0
45 stars 24 forks source link

CRLF line endings cause error on MacOS #9

Closed mattrossman closed 1 year ago

mattrossman commented 1 year ago

When installing the latest version of this from NPMJS and using it in my Prisma schema, I get the error env: node\r: No such file or directory:

image

It looks like the published file (e.g. dist/cli.js) uses CRLF endings instead of LF which causes issues outside of Windows. Whereas building it locally with LF endings fixes the error.

It'd be helpful to have this published with LF endings, perhaps automated via dos2unix

Brakebein commented 1 year ago

Thanks for reporting. With the newest release, it should now work on all platforms.

mattrossman commented 1 year ago

Thank you! I can confirm it works now on Mac