From abde25211a6d767cea1be0d095e8ab4a5d5ba3b8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Wed, 4 Dec 2024 23:02:57 +0100 Subject: [PATCH] fix(Watcher): Add missing logger message in Watcher class for start method --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/tswatch.classes.watcher.ts | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index f21d918..f40f2ee 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-12-04 - 2.0.31 - fix(Watcher) +Add missing logger message in Watcher class for start method + +- Added a log message when starting a watcher to track file path being watched + ## 2024-12-04 - 2.0.30 - fix(cli) Fix incorrect watch mode and update npm test command. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b51b740..3a58594 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tswatch', - version: '2.0.30', + version: '2.0.31', description: 'watch typescript projects during development' } diff --git a/ts/tswatch.classes.watcher.ts b/ts/tswatch.classes.watcher.ts index 9dd45a5..033b26a 100644 --- a/ts/tswatch.classes.watcher.ts +++ b/ts/tswatch.classes.watcher.ts @@ -31,6 +31,7 @@ export class Watcher { * start the file */ public async start() { + logger.log('info', `trying to start watcher for ${this.options.filePathToWatch}`); await this.setupCleanup(); console.log(`Looking at ${this.options.filePathToWatch} for changes`); this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file