mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
* fix(build): bound standalone package declaration graphs Co-authored-by: steipete <58493+steipete@users.noreply.github.com> * fix(build): migrate declaration producer audit and fixture consumers Derive public audit roots from the existing canonical export mapper and supply the editor augmentation graph to maintained lint fixtures. Keep producer entries, public exports, diagnostics and runtime behavior unchanged. Co-authored-by: steipete <58493+steipete@users.noreply.github.com> --------- Co-authored-by: steipete <58493+steipete@users.noreply.github.com>
38 lines
999 B
TypeScript
38 lines
999 B
TypeScript
// Lists package dist roots produced by tsdown builds.
|
|
const TSDOWN_PACKAGE_NAMES = [
|
|
"agent-core",
|
|
"ai",
|
|
"gateway-client",
|
|
"gateway-protocol",
|
|
"llm-core",
|
|
"markdown-core",
|
|
"media-core",
|
|
"media-generation-core",
|
|
"media-understanding-common",
|
|
"model-catalog-core",
|
|
"net-policy",
|
|
"normalization-core",
|
|
"retry",
|
|
"sdk",
|
|
"terminal-core",
|
|
"acp-core",
|
|
] as const;
|
|
|
|
/**
|
|
* Dist roots for all packages built through the shared tsdown pipeline.
|
|
*/
|
|
export const TSDOWN_PACKAGE_OUTPUT_ROOTS = TSDOWN_PACKAGE_NAMES.map(packageOutputRoot);
|
|
|
|
/**
|
|
* Returns the dist root for a known tsdown package name.
|
|
*/
|
|
export function tsdownPackageOutputRoot(packageName: string): string {
|
|
if (!TSDOWN_PACKAGE_NAMES.some((candidate) => candidate === packageName)) {
|
|
throw new Error(`Unknown tsdown package output root: ${packageName}`);
|
|
}
|
|
return packageOutputRoot(packageName);
|
|
}
|
|
|
|
function packageOutputRoot(packageName: string): string {
|
|
return `packages/${packageName}/dist`;
|
|
}
|