mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 14:41:41 +00:00
fix(release): manage tracked private shrinkwraps
This commit is contained in:
@@ -491,6 +491,12 @@ describe("generate-npm-shrinkwrap", () => {
|
||||
).toEqual(["extensions/acpx"]);
|
||||
});
|
||||
|
||||
it("targets changed tracked shrinkwraps for private packages", () => {
|
||||
expect(
|
||||
shrinkwrapPackageDirsForChangedPaths(["extensions/vault/package.json"]).map(repoRelativePath),
|
||||
).toEqual(["extensions/vault"]);
|
||||
});
|
||||
|
||||
it("falls back to every shrinkwrap when lockfile ownership is ambiguous", () => {
|
||||
const packageDirs = shrinkwrapPackageDirsForChangedPaths(["pnpm-lock.yaml"]).map(
|
||||
repoRelativePath,
|
||||
@@ -498,6 +504,7 @@ describe("generate-npm-shrinkwrap", () => {
|
||||
|
||||
expect(packageDirs).toContain("");
|
||||
expect(packageDirs).toContain("extensions/acpx");
|
||||
expect(packageDirs).toContain("extensions/vault");
|
||||
});
|
||||
|
||||
it("falls back to every shrinkwrap when mixed lockfile changes do not map to packages", () => {
|
||||
|
||||
Reference in New Issue
Block a user