fix(Watcher): Add missing logger message in Watcher class for start method
This commit is contained in:
parent
e8ae4c8341
commit
abde25211a
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# 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)
|
## 2024-12-04 - 2.0.30 - fix(cli)
|
||||||
Fix incorrect watch mode and update npm test command.
|
Fix incorrect watch mode and update npm test command.
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tswatch',
|
name: '@git.zone/tswatch',
|
||||||
version: '2.0.30',
|
version: '2.0.31',
|
||||||
description: 'watch typescript projects during development'
|
description: 'watch typescript projects during development'
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ export class Watcher {
|
|||||||
* start the file
|
* start the file
|
||||||
*/
|
*/
|
||||||
public async start() {
|
public async start() {
|
||||||
|
logger.log('info', `trying to start watcher for ${this.options.filePathToWatch}`);
|
||||||
await this.setupCleanup();
|
await this.setupCleanup();
|
||||||
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
|
console.log(`Looking at ${this.options.filePathToWatch} for changes`);
|
||||||
this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file
|
this.smartchokWatcher.add([this.options.filePathToWatch]); // __dirname refers to the directory of this very file
|
||||||
|
Loading…
Reference in New Issue
Block a user