fix(cli): Fix incorrect watch mode and update npm test command.

This commit is contained in:
Philipp Kunz 2024-12-04 22:58:46 +01:00
parent e2b154f392
commit dc6bb93349
5 changed files with 12 additions and 23 deletions

24
.vscode/launch.json vendored
View File

@ -2,28 +2,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "current file",
"type": "node",
"command": "npm test",
"name": "Run npm test",
"request": "launch",
"args": [
"${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"
"type": "node-terminal"
}
]
}

View File

@ -1,5 +1,11 @@
# Changelog
## 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)
No changes detected in the codebase.

View File

@ -5,7 +5,7 @@ import * as tswatch from '../ts/index.js';
let testTsWatchInstance: tswatch.TsWatch;
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 () => {

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tswatch',
version: '2.0.29',
version: '2.0.30',
description: 'watch typescript projects during development'
}

View File

@ -40,6 +40,7 @@ export class Watcher {
this.updateCurrentExecution();
});
await this.updateCurrentExecution();
logger.log('info', `watcher started for ${this.options.filePathToWatch}`);
}
/**