mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:10:49 +00:00
fix(release): detect packaged bundled runtime layouts
This commit is contained in:
@@ -140,6 +140,7 @@ describe("bundled plugin postinstall", () => {
|
||||
it("does not classify published packages with source files as source checkouts", () => {
|
||||
const packageRoot = "/pkg";
|
||||
const existingPaths = new Set([
|
||||
path.join(packageRoot, "package.json"),
|
||||
path.join(packageRoot, "pnpm-workspace.yaml"),
|
||||
path.join(packageRoot, "src"),
|
||||
path.join(packageRoot, "extensions"),
|
||||
@@ -150,6 +151,14 @@ describe("bundled plugin postinstall", () => {
|
||||
isSourceCheckoutRoot({
|
||||
packageRoot,
|
||||
existsSync: (value: string) => existingPaths.has(value),
|
||||
readFileSync: () =>
|
||||
JSON.stringify({
|
||||
openclaw: {
|
||||
bundle: {
|
||||
mirroredRootRuntimeDependencies: ["json5"],
|
||||
},
|
||||
},
|
||||
}),
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user