Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
9e0765ce0b | |||
abde25211a | |||
e8ae4c8341 | |||
dc6bb93349 |
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@@ -2,28 +2,10 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "current file",
|
"command": "npm test",
|
||||||
"type": "node",
|
"name": "Run npm test",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"args": [
|
"type": "node-terminal"
|
||||||
"${relativeFile}"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "test.ts",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"args": [
|
|
||||||
"test/test.ts"
|
|
||||||
],
|
|
||||||
"runtimeArgs": ["-r", "@git.zone/tsrun"],
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"protocol": "inspector",
|
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
11
changelog.md
11
changelog.md
@@ -1,5 +1,16 @@
|
|||||||
# 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)
|
||||||
|
Fix incorrect watch mode and update npm test command.
|
||||||
|
|
||||||
|
- Updated the npm test command in .vscode/launch.json for streamlined launching.
|
||||||
|
- Corrected the watch mode from 'echoSomething' to 'echo' in test/test.ts.
|
||||||
|
|
||||||
## 2024-12-04 - 2.0.29 - fix(core)
|
## 2024-12-04 - 2.0.29 - fix(core)
|
||||||
No changes detected in the codebase.
|
No changes detected in the codebase.
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tswatch",
|
"name": "@git.zone/tswatch",
|
||||||
"version": "2.0.29",
|
"version": "2.0.31",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "watch typescript projects during development",
|
"description": "watch typescript projects during development",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@@ -5,7 +5,7 @@ import * as tswatch from '../ts/index.js';
|
|||||||
let testTsWatchInstance: tswatch.TsWatch;
|
let testTsWatchInstance: tswatch.TsWatch;
|
||||||
|
|
||||||
tap.test('should create a valid TsWatch instance', async () => {
|
tap.test('should create a valid TsWatch instance', async () => {
|
||||||
testTsWatchInstance = new tswatch.TsWatch('echoSomething');
|
testTsWatchInstance = new tswatch.TsWatch('echo');
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should start the tswatch instance', async () => {
|
tap.test('should start the tswatch instance', async () => {
|
||||||
|
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tswatch',
|
name: '@git.zone/tswatch',
|
||||||
version: '2.0.29',
|
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
|
||||||
@@ -40,6 +41,7 @@ export class Watcher {
|
|||||||
this.updateCurrentExecution();
|
this.updateCurrentExecution();
|
||||||
});
|
});
|
||||||
await this.updateCurrentExecution();
|
await this.updateCurrentExecution();
|
||||||
|
logger.log('info', `watcher started for ${this.options.filePathToWatch}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user