unjs / giget

✨ Download templates and git repositories with pleasure!
MIT License
425 stars 37 forks source link

Option to throw if fetching a template fails #154

Open MuhammadM1998 opened 4 months ago

MuhammadM1998 commented 4 months ago

Describe the feature

Hello 👋

I'm using a Nuxt layer with the GitHub repo approach which lacks the versioning we would get if it were a npm package. Hence I want to make sure that I'm using the latest layer commit and otherwise fail to catch bugs as early as possible. Currently, If I set any incorrect GIGET_AUTH env (Repo is private) it doesn't throw an error and uses the currently folder in node_modules. A flag that throws an error and/or warning if fetching the repo fails would be great! Thanks a lot!

Additional information