Skip to content

Commit

Permalink
Fix notification
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhtrankhanh committed Dec 5, 2023
1 parent d9849d5 commit a82a231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ processFiles(argv.input)
if (argv.watch) {
const watcher = chokidar.watch(argv.input, { ignoreInitial: true })

watcher.on('all', (event: any, filePath: string) => {
console.log(`File ${filePath} has been ${event}`)
watcher.on('all', (event, filePath: string) => {
console.log(`${filePath} ${event}`)
transformFile(filePath)
})
}

0 comments on commit a82a231

Please sign in to comment.