diff --git a/create-tnf/package.json b/create-tnf/package.json index 83d6348..ba4ca09 100644 --- a/create-tnf/package.json +++ b/create-tnf/package.json @@ -22,12 +22,12 @@ "templates" ], "dependencies": { - "@types/yargs-parser": "^21.0.3", "@clack/prompts": "^0.7.0", "picocolors": "^1.1.1", "yargs-parser": "^21.1.1" }, "devDependencies": { + "@types/yargs-parser": "^21.0.3", "father": "^4.5.1", "tsx": "^4.19.2", "typescript": "^5.6.3" diff --git a/create-tnf/src/create.ts b/create-tnf/src/create.ts index 5fe4fe1..922b848 100644 --- a/create-tnf/src/create.ts +++ b/create-tnf/src/create.ts @@ -3,7 +3,7 @@ import fs from 'fs'; import path from 'path'; import pc from 'picocolors'; -const CANCEL_TEXT = '\x1b[31mOperation cancelled.\x1b[0m'; +const CANCEL_TEXT = 'Operation cancelled.'; export async function create({ cwd, @@ -35,7 +35,7 @@ export async function create({ })); if (isCancel(selectedTemplate)) { - outro(CANCEL_TEXT); + outro(pc.red(CANCEL_TEXT)); return; }