Skip to content

Commit

Permalink
chore: add info log
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajime-san committed Apr 10, 2023
1 parent 430770a commit 3f52664
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bin_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export const main = async (args: {
result: string;
}> = [];

console.log('processing...');

for await (const entry of walk(_basePath, { match, skip })) {
if (entry.isFile) {
const targetPath = entry.path;
Expand Down Expand Up @@ -132,9 +134,10 @@ export const main = async (args: {
const LOG_FILE_NAME = 'module-specifier-resolver.log';

const writeLog = async (): Promise<void> => {
// try remove log file if it exsist or not
try {
await Deno.remove(LOG_FILE_NAME);
} catch (_) {}
} catch (_) { /* noop */ }
await Promise.all(transformedList.map((transformed) => {
return new Promise((resolve, reject) => {
const { path, result } = transformed;
Expand Down

0 comments on commit 3f52664

Please sign in to comment.