mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 20:09:47 +00:00
fix(install): omit checkout alias from dist inventory
This commit is contained in:
parent
110f8bd2e1
commit
e910fe446a
2 changed files with 15 additions and 0 deletions
|
|
@ -79,12 +79,22 @@ describe("package dist inventory", () => {
|
|||
".bin",
|
||||
"color-support",
|
||||
);
|
||||
const omittedExtensionRootAliasSymlink = path.join(
|
||||
packageRoot,
|
||||
"dist",
|
||||
"extensions",
|
||||
"node_modules",
|
||||
"openclaw",
|
||||
"plugin-sdk",
|
||||
);
|
||||
const omittedMap = path.join(packageRoot, "dist", "feature.runtime.js.map");
|
||||
await fs.mkdir(path.dirname(packagedQaChannelRuntime), { recursive: true });
|
||||
await fs.mkdir(path.dirname(packagedQaLabRuntime), { recursive: true });
|
||||
await fs.mkdir(path.dirname(omittedQaMatrixChunk), { recursive: true });
|
||||
await fs.mkdir(path.dirname(omittedQaLabTypes), { recursive: true });
|
||||
await fs.mkdir(path.dirname(omittedExtensionNodeModuleSymlink), { recursive: true });
|
||||
await fs.mkdir(path.dirname(omittedExtensionRootAliasSymlink), { recursive: true });
|
||||
await fs.mkdir(path.join(packageRoot, "dist", "plugin-sdk"), { recursive: true });
|
||||
await fs.writeFile(path.join(packageRoot, "color-support.js"), "export {};\n", "utf8");
|
||||
await fs.writeFile(packagedQaChannelRuntime, "export {};\n", "utf8");
|
||||
await fs.writeFile(packagedQaLabRuntime, "export {};\n", "utf8");
|
||||
|
|
@ -98,6 +108,10 @@ describe("package dist inventory", () => {
|
|||
path.join(packageRoot, "color-support.js"),
|
||||
omittedExtensionNodeModuleSymlink,
|
||||
);
|
||||
await fs.symlink(
|
||||
path.join(packageRoot, "dist", "plugin-sdk"),
|
||||
omittedExtensionRootAliasSymlink,
|
||||
);
|
||||
await fs.writeFile(omittedMap, "{}", "utf8");
|
||||
|
||||
await expect(writePackageDistInventory(packageRoot)).resolves.toEqual([
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ const OMITTED_PRIVATE_QA_PLUGIN_SDK_FILES = new Set([
|
|||
]);
|
||||
const OMITTED_PRIVATE_QA_DIST_PREFIXES = ["dist/qa-runtime-"];
|
||||
const OMITTED_DIST_SUBTREE_PATTERNS = [
|
||||
/^dist\/extensions\/node_modules(?:\/|$)/u,
|
||||
/^dist\/extensions\/[^/]+\/node_modules(?:\/|$)/u,
|
||||
/^dist\/extensions\/qa-matrix(?:\/|$)/u,
|
||||
/^dist\/plugin-sdk\/extensions\/qa-lab(?:\/|$)/u,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue