Skip to content

Commit

Permalink
refactor: adjust form console msg on error in existing project
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaz committed Mar 29, 2024
1 parent e9b3822 commit 44f17f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion expressots.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/new/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ const projectForm = async (projectName: string, args: any[]): Promise<void> => {

await emitter.clone(answer.name);
} catch (err: any) {
console.log("\n");
printError(
"Project already exists or Folder is not empty",
answer.name,
Expand Down

0 comments on commit 44f17f1

Please sign in to comment.