paljs / prisma-tools

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

@paljs/cli doesn't work at all on Windows #261

Closed Atlinx closed 2 years ago

Atlinx commented 2 years ago

When I run pal using npx pal, I get a blank line and the CLI exits. The workaround I've been using is WSL, however, WSL is very slow in accessing files from Windows drives (ie. C:\\), making the CLI slow as well.

Atlinx commented 2 years ago

It looks like the problem was having the config file named pal.js. I've renamed it to pal.config.js, and I've used npx pal generate --config=pal.config.js to run the generator.

AhmedElywa commented 2 years ago

Yes good catch I will change the default config file to be pal.config.js

you can short your command like this npx pal g -c=pal.config