File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { DEV_MODE } from "@/constants";
1313// ==============================
1414
1515export const writeFileAsync = util . promisify ( fs . writeFile ) ;
16- export const fileExistsAsync = util . promisify ( fs . exists ) ;
16+ export const existsAsync = util . promisify ( fs . exists ) ;
1717export const readFileAsync = util . promisify ( fs . readFile ) ;
1818export const readDirAsync = util . promisify ( fs . readdir ) ;
1919export const realPathAsync = util . promisify ( fs . realpath ) ;
@@ -24,7 +24,7 @@ export const rmdirAsync = util.promisify(fs.rm);
2424 * @description A function that exits the CLI
2525 */
2626export function exitCLI ( ) : void {
27- console . log ( `See you soon ${ emoji . get ( "blush" ) } ! ` ) ;
27+ console . log ( `See you soon ${ emoji . get ( "blush" ) } ` ) ;
2828 process . exit ( ) ;
2929}
3030
@@ -132,7 +132,7 @@ export async function writeToFileAsync(
132132 successMessage : string ,
133133) : Promise < void > {
134134 try {
135- const fileExists = await fileExistsAsync ( destination ) ;
135+ const fileExists = await existsAsync ( destination ) ;
136136 let finalContent = content ;
137137
138138 if ( fileExists ) {
@@ -174,7 +174,7 @@ export function successMessage(
174174 emojiCode : string ,
175175 context : string ,
176176) : string {
177- return chalk . green ( `${ emoji . get ( emojiCode ) } ${ file } ${ context } ... [done]` )
177+ return chalk . green ( `${ emoji . get ( emojiCode ) } ${ file } ${ context } ... [done]` ) ;
178178}
179179
180180/**
You can’t perform that action at this time.
0 commit comments