Skip to content

feat: rename optimize to build with JSON output - #85

Merged
yusukebe merged 1 commit into
nextfrom
feat/json-output
Aug 17, 2026
Merged

feat: rename optimize to build with JSON output#85
yusukebe merged 1 commit into
nextfrom
feat/json-output

Conversation

@yusukebe

Copy link
Copy Markdown
Member

Two changes for 0.2 (part of #77):

  • Rename optimize to build. Plain hono build just bundles the app. --optimize applies the Hono-specific optimizations (the old behavior)
  • Add the shared JSON output envelope in src/utils/output.ts: { ok, data } on success, { ok, error: { code, message, hint } } with exit code 1 on failure. build uses it as the first command. --plain gives the old human-readable text

request will move to the same envelope in the next PR.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • pnpm run format:fix && pnpm run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe
yusukebe merged commit c471573 into next Aug 17, 2026
4 checks passed
@yusukebe
yusukebe deleted the feat/json-output branch August 17, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant