Cauen / prisma-generator-pothos-codegen

The fastest way to create a fully customizable CRUD Graphql API from Prisma Schema.
https://www.npmjs.com/package/prisma-generator-pothos-codegen
95 stars 18 forks source link

Generator bin is `CRLF` #9

Closed snake575 closed 1 year ago

snake575 commented 1 year ago

The CRLF line ending causes this error with the generator on unix:

env: node\r: No such file or directory
image
Diederik98 commented 1 year ago

I solved this issue on macOS by adding the following line in scripts in my package.json: "install": "find node_modules/prisma-generator-pothos-codegen -name \"*.js\" | xargs dos2unix". dos2unix is a program I installed using homebrew

snake575 commented 1 year ago

Thanks, solved it using a similar solution. The file should be saved as LF before uploading to npm though 🤔

Cauen commented 1 year ago

@snake575 @Diederik98 Thanks for your contribution Published new version 0.4.3 with LF Now tsconfig.json are configured to build using LF