Open CyanoFresh opened 11 months ago
Any movement on this or pointers? Happy to help on this.
A hacky fix is to exit the process after 5 seconds:
generator zod {
// Process never exits, bug: https://github.com/chrishoermann/zod-prisma-types/issues/170
provider = "perl -e 'alarm 5; exec @ARGV' npx zod-prisma-types"
output = "./models"
createInputTypes = false
}
timeout
is available on unix, but not macOS by default. If your environment is entirely linux/unix, you could also use the cleaner:
generator zod {
// Process never exits, bug: https://github.com/chrishoermann/zod-prisma-types/issues/170
provider = "timeout 5s npx zod-prisma-types"
output = "./models"
createInputTypes = false
}
Same issue
perl is working fine for me, but now every prisma generate
takes 5s.
for some reason timeout
is not working for alpine docker build
When using
npm i
command doesn't complete, hanging forever. Withoutnpx
prefix it's not working:This completely breaks my CI pipeline. Only commenting the
generator zod
fixes the problem.If I interrupt the process, npm log:
OS:
zod-prisma-types version: 2.7.7 Prisma version: 5.1.1