From 9d87851264ebf1b03ba4f3e8b89b2baa20bd46bb Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:57:38 +0530 Subject: [PATCH] logs --- tsdown.config.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tsdown.config.ts b/tsdown.config.ts index 8a7659df8..89587314c 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -33,7 +33,15 @@ export default defineConfig((options) => { hooks: { 'build:prepare': async () => { await ensureSymlinks(isDev) - !isDev && (await buildClientDist()) + if (!isDev) { + await buildClientDist() + console.log('Client build complete.') + } + }, + 'build:done': async () => { + if (!isDev) { + console.log('Node build complete.') + } } }, inlineOnly: false, @@ -42,9 +50,6 @@ export default defineConfig((options) => { nodeProtocol: true, outDir: 'dist/node', platform: 'node', - sourcemap: isDev, - target: 'node20', - tsconfig: 'src/node/tsconfig.json', plugins: [ isDev && { name: 'custom:dev-replace', @@ -57,7 +62,10 @@ export default defineConfig((options) => { ) } } - ] + ], + sourcemap: isDev, + target: 'node20', + tsconfig: 'src/node/tsconfig.json' } }) @@ -86,8 +94,6 @@ async function buildClientDist(): Promise { const dVueFiles = await glob('dist/client/**/*.d.vue.ts') await Promise.all(dVueFiles.map((file) => fs.rm(file))) - - console.log('Client build complete.') } async function ensureSymlinks(isDev: boolean): Promise {