fix(build): restore daemon-cli legacy shim

This commit is contained in:
Peter Steinberger
2026-02-15 04:52:51 +00:00
parent 887ca6086e
commit 960850445b
2 changed files with 10 additions and 1 deletions

View File

@@ -12,7 +12,9 @@ const cliDir = path.join(distDir, "cli");
const findCandidates = () =>
fs.readdirSync(distDir).filter((entry) => {
if (!entry.startsWith("daemon-cli-")) {
const isDaemonCliBundle =
entry === "daemon-cli.js" || entry === "daemon-cli.mjs" || entry.startsWith("daemon-cli-");
if (!isDaemonCliBundle) {
return false;
}
// tsdown can emit either .js or .mjs depending on bundler settings/runtime.