@compas/code-gen
Advanced tools
Comparing version 0.15.0 to 0.15.1
{ | ||
"name": "@compas/code-gen", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "Generate various boring parts of your server", | ||
@@ -24,3 +24,3 @@ "exports": { | ||
"dependencies": { | ||
"@compas/stdlib": "0.15.0" | ||
"@compas/stdlib": "0.15.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "author": { |
@@ -418,3 +418,7 @@ import { AnyType } from "../builders/index.js"; | ||
fileWrite(file, `await ${group}Handlers.${route.name}(ctx as any);`); | ||
if (file.relativePath.endsWith(".ts")) { | ||
fileWrite(file, `await ${group}Handlers.${route.name}(ctx as any);`); | ||
} else { | ||
fileWrite(file, `await ${group}Handlers.${route.name}(ctx);`); | ||
} | ||
@@ -421,0 +425,0 @@ if (route.response) { |
1439318
42871
+ Added@compas/stdlib@0.15.1(transitive)
- Removed@compas/stdlib@0.15.0(transitive)
Updated@compas/stdlib@0.15.1