From e8c4eaa96f8ee51db84a45346d425af070307790 Mon Sep 17 00:00:00 2001 From: Dinhero21 Date: Wed, 11 Sep 2024 21:56:13 -0300 Subject: [PATCH] console.log -> console.info --- src/m3/command/install.ts | 8 ++++---- src/util/import-modules.ts | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/m3/command/install.ts b/src/m3/command/install.ts index 328c9ab..8836157 100644 --- a/src/m3/command/install.ts +++ b/src/m3/command/install.ts @@ -46,7 +46,7 @@ program await writeFile(globalPath, JSON.stringify(global, null, 2)); } - console.log('Calculating delta...'); + console.info('Calculating delta...'); const addedUrls = new Set(); @@ -59,11 +59,11 @@ program await addModule(url, true); if (modules.size === 0) { - console.log('Nothing to do.'); + console.info('Nothing to do.'); return; } - console.log(`Adding ${modules.size} module(s)...`); + console.info(`Adding ${modules.size} module(s)...`); if (!options.yes) { if (!(await confirm({ message: 'Continue?' }))) return; @@ -192,7 +192,7 @@ program } modules.set(url, { manual }); - console.log(chalk.green(`[+] ${global.name}`)); + console.info(chalk.green(`[+] ${global.name}`)); const promises: Promise[] = []; diff --git a/src/util/import-modules.ts b/src/util/import-modules.ts index fe9cc2b..93ca0ce 100644 --- a/src/util/import-modules.ts +++ b/src/util/import-modules.ts @@ -24,8 +24,6 @@ export async function* importModulesGenerator( index: string, callbacks?: Callbacks, ): AsyncGenerator { - console.log('importModulesGenerator', { directory, index }); - for (const entry of await readdir(directory, { withFileTypes: true })) { const path = resolve(entry.path, entry.name, index);