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,