Skip to content

Commit

Permalink
Handle review comments
Browse files Browse the repository at this point in the history
- log the directory

Signed-off-by: Christoph Uhland <[email protected]>
  • Loading branch information
cuhland committed Dec 9, 2024
1 parent 079b36b commit a9f21df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ export async function run (process: NodeJS.Process): Promise<number> {
}
}
}

myConsole.log('LOG | writing BOM to', options.outputFile)
const directory = dirname(options.outputFile)
if (!existsSync(directory)) {
myConsole.info('INFO | Creating directory ' + directory)
mkdirSync(directory, { recursive: true })
}
myConsole.log('LOG | writing BOM to', options.outputFile)
const written = await writeAllSync(
options.outputFile === OutputStdOut
? process.stdout.fd
Expand Down

0 comments on commit a9f21df

Please sign in to comment.