ricokahler / sanity-codegen

Generate TypeScript types from your Sanity.io schemas
sanity-codegen-dev.vercel.app
MIT License
270 stars 19 forks source link

fix: process sometimes not exiting on node 15+ #246

Open alexbchr opened 2 years ago

alexbchr commented 2 years ago

Fixes #243 by calling process.exit(0) to ensure the process correctly exits after a the successful execution of the cli function.

As mentioned by @ricokahler, Next.js does the same in their codebase.

marconucara commented 2 years ago

Can you merge this please?

lbittner-pdftron commented 2 years ago

+1 Can we please get this merged

smoglica commented 2 years ago

Same issue, +1 for merging

felixgren commented 1 year ago

Let us start 2023 strong by getting this merged

@ricokahler