Compare commits

...

2 Commits

Author SHA1 Message Date
d4414638b6 2.0.34 2024-12-04 23:14:36 +01:00
5cd5085f05 fix(TsWatch): Fix reloading issue for tsfolder changes in element mode. 2024-12-04 23:14:36 +01:00
4 changed files with 8 additions and 3 deletions

View File

@@ -1,5 +1,10 @@
# Changelog
## 2024-12-04 - 2.0.34 - fix(TsWatch)
Fix reloading issue for tsfolder changes in element mode.
- Adjusted the function call from 'this.typedserver.reload()' to 'bundleAndReloadElement()' to ensure proper bundle handling in 'element' mode.
## 2024-12-04 - 2.0.33 - fix(core)
Improve async handling in TsWatch class for element and website modes

View File

@@ -1,6 +1,6 @@
{
"name": "@git.zone/tswatch",
"version": "2.0.33",
"version": "2.0.34",
"private": false,
"description": "watch typescript projects during development",
"main": "dist_ts/index.js",

View File

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

View File

@@ -93,7 +93,7 @@ export class TsWatch {
functionToCall: async () => {
logger.log('info', `building ${tsfolder}`);
await smartshellInstance.exec(`(cd ${paths.cwd} && npm run build)`);
await this.typedserver.reload();
await bundleAndReloadElement();
},
timeout: null,
})