mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
fix(release): align plugin shrinkwrap scope
This commit is contained in:
@@ -27,7 +27,7 @@ const releaseTasks = [
|
||||
{
|
||||
id: "npm-shrinkwraps",
|
||||
name: "npm shrinkwraps",
|
||||
scopes: ["dependencies", "version"],
|
||||
scopes: ["dependencies", "plugins", "version"],
|
||||
fix: nodeCommand("scripts/generate-npm-shrinkwrap.mjs", "--changed"),
|
||||
fixAfter: ["plugin-versions", "plugin-sdk-exports"],
|
||||
check: nodeCommand("scripts/generate-npm-shrinkwrap.mjs", "--all", "--check"),
|
||||
|
||||
@@ -216,6 +216,25 @@ describe("scripts/release-preflight.mjs", () => {
|
||||
expect(result.stdout).toContain("(version, jobs=4)");
|
||||
});
|
||||
|
||||
it("keeps plugin shrinkwraps aligned during plugin-only prep", () => {
|
||||
const fakePnpm = makeFakePnpm();
|
||||
const root = makeReleaseFixture();
|
||||
const result = runPreflight(["--fix", "--scope", "plugins"], fakePnpm, {}, root);
|
||||
|
||||
expect(result.status).toBe(0);
|
||||
expect(readPnpmLog(fakePnpm.logPath).toSorted()).toEqual(
|
||||
[
|
||||
"node --import tsx scripts/sync-plugin-versions.ts",
|
||||
"node scripts/generate-npm-shrinkwrap.mjs --changed",
|
||||
"node scripts/generate-plugin-inventory-doc.mjs --write",
|
||||
"node --import tsx scripts/sync-plugin-versions.ts --check",
|
||||
"node scripts/generate-npm-shrinkwrap.mjs --all --check",
|
||||
"node scripts/generate-plugin-inventory-doc.mjs --check",
|
||||
].toSorted(),
|
||||
);
|
||||
expect(result.stdout).toContain("(plugins, jobs=4)");
|
||||
});
|
||||
|
||||
it("checks non-version scopes without requiring macOS source metadata", () => {
|
||||
const fakePnpm = makeFakePnpm();
|
||||
const root = makeTempDir(tempDirs, "openclaw-release-preflight-config-");
|
||||
|
||||
Reference in New Issue
Block a user