From 61076b80caf5eca2e5d989e680519d2c42c54921 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 23:34:22 +0000 Subject: [PATCH] fix: call rebuild() in esbuild.mjs so dist files are actually produced Agent-Logs-Url: https://github.com/microsoft/vscode-anycode/sessions/3eb56369-17d7-42c0-9f6d-57a14c23d376 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com> --- anycode/esbuild.mjs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/anycode/esbuild.mjs b/anycode/esbuild.mjs index c834ac4..8491c0b 100644 --- a/anycode/esbuild.mjs +++ b/anycode/esbuild.mjs @@ -92,16 +92,14 @@ const all = [ nodeClient, nodeServer, // server serverTests, testFixture ]; -Promise.all(all).then(() => { - - if (!isWatch) { - all.forEach(build => build.dispose()); - console.log('done building') - return; - } +if (!isWatch) { + await Promise.all(all.map(build => build.rebuild())); + all.forEach(build => build.dispose()); + console.log('done building') +} else { all.forEach(build => { build.watch({ delay: 500 }) }); console.log('done building, start watching...') -}) +}