diff --git a/changelog.md b/changelog.md index 293763b..6057f10 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2025-01-29 - 2.2.5 - fix(mod_assets) +Fix async handling in asset processing + +- Ensured that the empty directory operation is awaited in the asset processing workflow. + ## 2025-01-29 - 2.2.4 - fix(mod_assets) Fix logging message in ensureAssetsDir to correctly state when directory is created diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index db2862d..c1e688a 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbundle', - version: '2.2.4', + version: '2.2.5', description: 'a bundler using rollup for painless bundling of web projects' } diff --git a/ts/mod_assets/index.ts b/ts/mod_assets/index.ts index 2ca9096..adc0496 100644 --- a/ts/mod_assets/index.ts +++ b/ts/mod_assets/index.ts @@ -31,7 +31,7 @@ export class AssetsHandler { optionsArg.to = plugins.smartpath.transform.toAbsolute(optionsArg.to, paths.cwd) as string; // lets clean theh target directory - plugins.smartfile.fs.ensureEmptyDir(optionsArg.to); + await plugins.smartfile.fs.ensureEmptyDir(optionsArg.to); plugins.smartfile.fs.copySync(optionsArg.from, optionsArg.to, { replaceTargetDir: true,