mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
Build: add packager runtime build
This commit is contained in:
10
scripts/copy-pnpm-lock-to-dist.mjs
Normal file
10
scripts/copy-pnpm-lock-to-dist.mjs
Normal 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);
|
||||
@@ -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/"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user