mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
c70aee247e
* refactor(scripts): migrate JavaScript tools to TypeScript * fix(ci): keep changed-scope preflight zero-install * fix(ci): preserve zero-install script owners * fix(ci): complete script migration follow-through * fix(release): keep stable closeout zero-install * fix(scripts): preserve standalone execution boundaries * fix(scripts): repair standalone loader boundaries * fix(scripts): normalize gateway observation ids * fix(scripts): keep Docker packager standalone * test(scripts): preserve rebase cleanup helpers * test(sessions): use tracked temp directory
38 lines
990 B
TypeScript
38 lines
990 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",
|
|
"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`;
|
|
}
|