fix(ci): package runtime resources in dist artifact

This commit is contained in:
clawsweeper
2026-08-01 17:24:37 +00:00
parent ddde02a66f
commit c8e2b26978
2 changed files with 2 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
export const WORKSPACE_TEMPLATE_PACK_PATHS: readonly string[];
export const DIST_RUNTIME_ARTIFACT_BASE_PATHS: readonly string[];
export function createWorkspaceBootstrapSmokeEnv(
env: NodeJS.ProcessEnv,
homeDir: string,
@@ -10,7 +9,6 @@ export function runInstalledWorkspaceBootstrapSmoke(params: {
nodeArgs?: string[];
envOverrides?: NodeJS.ProcessEnv;
}): void;
export function collectDistRuntimeArtifactPaths(rootDir: string): string[];
export function buildAndSmokeDistRuntimeArtifact(params: {
rootDir: string;
archivePath: string;

View File

@@ -18,7 +18,7 @@ export const WORKSPACE_TEMPLATE_PACK_PATHS = [
"docs/reference/templates/BOOTSTRAP.md",
];
export const DIST_RUNTIME_ARTIFACT_BASE_PATHS = [
const DIST_RUNTIME_ARTIFACT_BASE_PATHS = [
"openclaw.mjs",
"package.json",
"docs/reference/templates",
@@ -231,7 +231,7 @@ export function runInstalledWorkspaceBootstrapSmoke(params) {
}
}
export function collectDistRuntimeArtifactPaths(rootDir) {
function collectDistRuntimeArtifactPaths(rootDir) {
const missingPaths = DIST_RUNTIME_ARTIFACT_PACKAGE_SOURCE_PATHS.filter(
(artifactPath) => !existsSync(join(rootDir, artifactPath)),
);