Build: add packager runtime build

This commit is contained in:
joshp123
2026-02-15 15:31:32 -08:00
parent 6b4590be06
commit 3ab1ed4026
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import fs from "node:fs/promises";
import path from "node:path";
const repoRoot = process.cwd();
const src = path.join(repoRoot, "pnpm-lock.yaml");
const outDir = path.join(repoRoot, "dist");
const out = path.join(outDir, "pnpm-lock.yaml");
await fs.mkdir(outDir, { recursive: true });
await fs.copyFile(src, out);

View File

@@ -13,6 +13,7 @@ const requiredPathGroups = [
"dist/plugin-sdk/index.js",
"dist/plugin-sdk/index.d.ts",
"dist/build-info.json",
"dist/pnpm-lock.yaml",
];
const forbiddenPrefixes = ["dist/OpenClaw.app/"];