From e690cda45912ae1bfcb7b4b2144ef964ade89a05 Mon Sep 17 00:00:00 2001 From: Richard Zampieri Date: Wed, 31 Jul 2024 21:24:18 -0700 Subject: [PATCH] fix: update usecase to UseCase nonop template --- expressots.config.ts | 6 +++--- src/generate/utils/nonopininated-cmd.ts | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/expressots.config.ts b/expressots.config.ts index 0fbbcfe..a8f1b4a 100644 --- a/expressots.config.ts +++ b/expressots.config.ts @@ -3,8 +3,8 @@ import { ExpressoConfig, Pattern } from "./src/types"; const config: ExpressoConfig = { sourceRoot: "src", scaffoldPattern: Pattern.KEBAB_CASE, - opinionated: true, - scaffoldSchematics: { + opinionated: false, + /* scaffoldSchematics: { entity: "model", provider: "adapter", controller: "controller", @@ -12,7 +12,7 @@ const config: ExpressoConfig = { dto: "payload", module: "group", middleware: "exjs", - }, + }, */ }; export default config; diff --git a/src/generate/utils/nonopininated-cmd.ts b/src/generate/utils/nonopininated-cmd.ts index 2a3f44b..a7b8a4b 100644 --- a/src/generate/utils/nonopininated-cmd.ts +++ b/src/generate/utils/nonopininated-cmd.ts @@ -204,7 +204,10 @@ async function generateUseCase( moduleName, path, fileName, - schematic: anyCaseToPascalCase(schematic), + schematic: + schematic === "usecase" + ? "UseCase" + : anyCaseToPascalCase(schematic), }, }, });