fix(TsWatch): Fix reloading issue for tsfolder changes in element mode.
This commit is contained in:
parent
0b8f3d317c
commit
5cd5085f05
@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# 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)
|
## 2024-12-04 - 2.0.33 - fix(core)
|
||||||
Improve async handling in TsWatch class for element and website modes
|
Improve async handling in TsWatch class for element and website modes
|
||||||
|
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tswatch',
|
name: '@git.zone/tswatch',
|
||||||
version: '2.0.33',
|
version: '2.0.34',
|
||||||
description: 'watch typescript projects during development'
|
description: 'watch typescript projects during development'
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ export class TsWatch {
|
|||||||
functionToCall: async () => {
|
functionToCall: async () => {
|
||||||
logger.log('info', `building ${tsfolder}`);
|
logger.log('info', `building ${tsfolder}`);
|
||||||
await smartshellInstance.exec(`(cd ${paths.cwd} && npm run build)`);
|
await smartshellInstance.exec(`(cd ${paths.cwd} && npm run build)`);
|
||||||
await this.typedserver.reload();
|
await bundleAndReloadElement();
|
||||||
},
|
},
|
||||||
timeout: null,
|
timeout: null,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user