mirror of
https://github.com/TencentCloud/TencentDB-Agent-Memory
synced 2026-07-10 12:34:27 +00:00
feat: release v0.3.3 — Hermes adapter, context offload, core refactor
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { defineConfig } from "tsdown";
|
||||
import packageJson from "./package.json" with { type: "json" };
|
||||
|
||||
/** Collect all declared dependencies that must NOT be bundled. */
|
||||
function collectExternalDependencies(): string[] {
|
||||
return [
|
||||
...Object.keys(packageJson.dependencies ?? {}),
|
||||
...Object.keys(packageJson.peerDependencies ?? {}),
|
||||
...Object.keys(packageJson.optionalDependencies ?? {}),
|
||||
];
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["./index.ts"],
|
||||
outDir: "./dist",
|
||||
format: "esm",
|
||||
platform: "node",
|
||||
clean: true,
|
||||
fixedExtension: true,
|
||||
dts: false,
|
||||
sourcemap: false,
|
||||
deps: {
|
||||
neverBundle: (id) => {
|
||||
// openclaw SDK — always external
|
||||
if (id === "openclaw" || id.startsWith("openclaw/")) return true;
|
||||
// node: builtins
|
||||
if (id.startsWith("node:")) return true;
|
||||
// all declared dependencies
|
||||
for (const dep of collectExternalDependencies()) {
|
||||
if (id === dep || id.startsWith(`${dep}/`)) return true;
|
||||
}
|
||||
return false;
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user