hono-takibi 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ function generateApp(openAPISpec, config) {
24
24
  const applyOpenapiRoutes = (0, generate_apply_openapi_routes_1.generateApplyOpenapiRoutes)(routeMappings);
25
25
  const openAPIHono = config.app?.basePath ? `${APP}.basePath('${config.app.basePath}')` : APP;
26
26
  const app = `app${applyOpenapiRoutes}`;
27
- const api = `const api = ${app}`;
27
+ const api = `export const api = ${app}`;
28
28
  const docs = (0, generate_docs_1.generateDocs)(openAPISpec);
29
29
  const isDev = config?.app?.isDev
30
30
  ? `const isDev = ${config.app.isDev} === 'development'`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hono-takibi",
3
3
  "description": "Hono Takibi is a CLI tool that generates Hono routes from OpenAPI specifications.",
4
- "version": "0.3.5",
4
+ "version": "0.4.0",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "hono",