From 44f17f1d053adead04ba607920499b1b5408af5b Mon Sep 17 00:00:00 2001 From: Richard Zampieri Date: Thu, 28 Mar 2024 20:20:13 -0700 Subject: [PATCH] refactor: adjust form console msg on error in existing project --- expressots.config.ts | 2 +- package.json | 1 + src/new/form.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/expressots.config.ts b/expressots.config.ts index fb905f8..0fbbcfe 100644 --- a/expressots.config.ts +++ b/expressots.config.ts @@ -3,7 +3,7 @@ import { ExpressoConfig, Pattern } from "./src/types"; const config: ExpressoConfig = { sourceRoot: "src", scaffoldPattern: Pattern.KEBAB_CASE, - opinionated: false, + opinionated: true, scaffoldSchematics: { entity: "model", provider: "adapter", diff --git a/package.json b/package.json index 55d7bbe..a55129d 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "build": "npm run clean && tsc -p tsconfig.json && yarn cp:templates && chmod +x ./bin/cli.js", "cp:templates": "cp -r ./src/generate/templates ./bin/generate/templates && cp -r ./src/providers/prisma/templates ./bin/providers/prisma/templates", "clean": "rimraf ./bin", + "prepublish": "npm run build && npm pack", "format": "prettier --write \"./src/**/*.ts\" --cache", "lint": "eslint \"./src/**/*.ts\"", "lint:fix": "eslint \"./src/**/*.ts\" --fix", diff --git a/src/new/form.ts b/src/new/form.ts index 00d00d6..f2430f8 100644 --- a/src/new/form.ts +++ b/src/new/form.ts @@ -211,6 +211,7 @@ const projectForm = async (projectName: string, args: any[]): Promise => { await emitter.clone(answer.name); } catch (err: any) { + console.log("\n"); printError( "Project already exists or Folder is not empty", answer.name,