mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00: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 = () =>
|
const findCandidates = () =>
|
||||||
fs.readdirSync(distDir).filter((entry) => {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
// tsdown can emit either .js or .mjs depending on bundler settings/runtime.
|
// tsdown can emit either .js or .mjs depending on bundler settings/runtime.
|
||||||
|
|||||||
@@ -17,6 +17,13 @@ export default defineConfig([
|
|||||||
fixedExtension: false,
|
fixedExtension: false,
|
||||||
platform: "node",
|
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",
|
entry: "src/infra/warning-filter.ts",
|
||||||
env,
|
env,
|
||||||
|
|||||||
Reference in New Issue
Block a user