From 43d906f2242acacdc57f42dc5ccb4afd4c9d9ce2 Mon Sep 17 00:00:00 2001 From: Pavel Date: Tue, 2 Jul 2024 11:06:58 +0400 Subject: [PATCH] remove chalk --- src/index.ts | 3 +-- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 968731c..a397d5a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,6 @@ import fs from 'fs'; import path, {dirname} from 'path'; import inquirer from 'inquirer'; -import chalk from 'chalk'; import shell from 'shelljs'; import {fileURLToPath} from 'url'; import ejs from 'ejs'; @@ -63,7 +62,7 @@ inquirer.prompt(QUESTIONS).then(answers => { function createProject(projectPath: string) { if (fs.existsSync(projectPath)) { - console.log(chalk.red(`Folder ${projectPath} exists. Delete or use another name.`)); + console.log(`Folder ${projectPath} exists. Delete or use another name.`); return false; } fs.mkdirSync(projectPath); diff --git a/tsconfig.json b/tsconfig.json index d98b15c..eabd5f8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ "rootDir": "src", "strict": true, "esModuleInterop": true, - "module": "ESNext", /* Specify what module code is generated. */ + "module": "ESNext", "moduleResolution": "node" },