mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix(build): restore daemon-cli legacy shim
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user