blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
134 stars 17 forks source link

Fix CLI bundling glob for npm/npx #141

Closed blomqma closed 5 months ago

blomqma commented 5 months ago

The ESBuild process for the CLI commands fails when run with npm/npx due to the dependencies being resolved differently than with pnpm, resulting in the dependencies at node_modules folder being resolved by ESBuild when running the CLI commands with npm/npx.

To fix this, the tiny-glob package is replaced with an alternative fast-glob that allows us to explicitly exclude all node_modules files from the globbing output, fixing the issue.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rest-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 9:51pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 9:51pm