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

Remove CLI ESBuild step #161

Closed blomqma closed 4 months ago

blomqma commented 4 months ago

This fix aims to address various ESBuild issues of users by removing the ESBuild step from the CLI commands and parsing parsing the OpenAPI spec directly from TS/JS files without any build step by using tsx.

The generate and validate functions are now also exposed as entry points for the ESBuild output, allowing those functions to be used for custom CLIs.

The second commit also includes verifying that the CLI commands work with third-party dependencies, raised in this PR: https://github.com/blomqma/next-rest-framework/pull/160

vercel[bot] commented 4 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 Apr 16, 2024 10:45pm
next-rest-framework-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 10:45pm