console.log -> console.info

This commit is contained in:
Dinhero21 2024-09-11 21:56:13 -03:00
parent 03044d2a66
commit e8c4eaa96f
2 changed files with 4 additions and 6 deletions

View file

@ -46,7 +46,7 @@ program
await writeFile(globalPath, JSON.stringify(global, null, 2)); await writeFile(globalPath, JSON.stringify(global, null, 2));
} }
console.log('Calculating delta...'); console.info('Calculating delta...');
const addedUrls = new Set<string>(); const addedUrls = new Set<string>();
@ -59,11 +59,11 @@ program
await addModule(url, true); await addModule(url, true);
if (modules.size === 0) { if (modules.size === 0) {
console.log('Nothing to do.'); console.info('Nothing to do.');
return; return;
} }
console.log(`Adding ${modules.size} module(s)...`); console.info(`Adding ${modules.size} module(s)...`);
if (!options.yes) { if (!options.yes) {
if (!(await confirm({ message: 'Continue?' }))) return; if (!(await confirm({ message: 'Continue?' }))) return;
@ -192,7 +192,7 @@ program
} }
modules.set(url, { manual }); modules.set(url, { manual });
console.log(chalk.green(`[+] ${global.name}`)); console.info(chalk.green(`[+] ${global.name}`));
const promises: Promise<void>[] = []; const promises: Promise<void>[] = [];

View file

@ -24,8 +24,6 @@ export async function* importModulesGenerator(
index: string, index: string,
callbacks?: Callbacks, callbacks?: Callbacks,
): AsyncGenerator<unknown> { ): AsyncGenerator<unknown> {
console.log('importModulesGenerator', { directory, index });
for (const entry of await readdir(directory, { withFileTypes: true })) { for (const entry of await readdir(directory, { withFileTypes: true })) {
const path = resolve(entry.path, entry.name, index); const path = resolve(entry.path, entry.name, index);