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.

View File

@@ -17,6 +17,13 @@ export default defineConfig([
fixedExtension: false,
platform: "node",
},
{
// Ensure this module is bundled as an entry so legacy CLI shims can resolve its exports.
entry: "src/cli/daemon-cli.ts",
env,
fixedExtension: false,
platform: "node",
},
{
entry: "src/infra/warning-filter.ts",
env,