Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Dec 25, 2024
1 parent b938cb5 commit 9260ed2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create-tnf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions create-tnf/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -35,7 +35,7 @@ export async function create({
}));

if (isCancel(selectedTemplate)) {
outro(CANCEL_TEXT);
outro(pc.red(CANCEL_TEXT));
return;
}

Expand Down

0 comments on commit 9260ed2

Please sign in to comment.