Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shaky-rings-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@changesets/action": major
---

Update to Changesets v3 packages
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"@actions/core": "^3.0.1",
"@actions/exec": "^3.0.0",
"@actions/github": "^9.1.1",
"@changesets/get-release-plan": "^4.0.16",
"@changesets/get-release-plan": "^5.0.0-next.6",
"@changesets/ghcommit": "^2.1.1",
"@changesets/git": "^3.0.4",
"@changesets/pre": "^2.0.2",
"@changesets/read": "^0.6.7",
"@manypkg/get-packages": "^1.1.3",
"@changesets/git": "^4.0.0-next.5",
"@changesets/pre": "^3.0.0-next.5",
"@changesets/read": "^1.0.0-next.6",
"@manypkg/get-packages": "^3.1.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-throttling": "^11.0.3",
"human-id": "^4.1.3",
Expand All @@ -35,10 +35,10 @@
"tinyexec": "^1.2.4"
},
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@changesets/types": "^6.1.0",
"@changesets/write": "^0.4.0",
"@changesets/changelog-github": "^1.0.0-next.5",
"@changesets/cli": "^3.0.0-next.6",
"@changesets/types": "^7.0.0-next.5",
"@changesets/write": "^1.0.0-next.5",
"@tsconfig/node24": "^24.0.4",
"@types/node": "^24.12.4",
"@types/semver": "^7.7.1",
Expand Down
977 changes: 269 additions & 708 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ dedupePeers: true
dedupePeerDependents: true
minimumReleaseAge: 10080
minimumReleaseAgeExclude:
- "@changesets/ghcommit@2.1.1"
- "@changesets/apply-release-plan@8.0.0-next.6"
- "@changesets/assemble-release-plan@7.0.0-next.6"
- "@changesets/changelog-github@1.0.0-next.5"
- "@changesets/cli@3.0.0-next.6"
- "@changesets/get-release-plan@5.0.0-next.6"
- "@changesets/git@4.0.0-next.5"
- "@changesets/parse@1.0.0-next.6"
- "@changesets/pre@3.0.0-next.5"
- "@changesets/read@1.0.0-next.6"
- "@changesets/types@7.0.0-next.5"
- "@changesets/write@1.0.0-next.5"

overrides:
lightningcss: "-" # we do not bundle any css
Expand Down
2 changes: 1 addition & 1 deletion src/pr-status/message.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as github from "@actions/github";
import getReleasePlan from "@changesets/get-release-plan";
import { getReleasePlan } from "@changesets/get-release-plan";
import type {
ComprehensiveRelease,
ReleasePlan,
Expand Down
3 changes: 2 additions & 1 deletion src/pr-status/worktree.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { pathToFileURL } from "node:url";
import type * as github from "@actions/github";
import getReleasePlan from "@changesets/get-release-plan";
import { getReleasePlan } from "@changesets/get-release-plan";
import { createFixture } from "fs-fixture";
import { exec } from "tinyexec";
import { describe, expect, it } from "vitest";
Expand Down Expand Up @@ -28,6 +28,7 @@ describe("getPullRequestWorktree", () => {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
"packages/pkg-a/package.json": JSON.stringify({
name: "pkg-a",
version: "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/readChangesetState.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readPreState } from "@changesets/pre";
import readChangesets from "@changesets/read";
import { readChangesets } from "@changesets/read";
import type { PreState, NewChangeset } from "@changesets/types";

export type ChangesetState = {
Expand Down
4 changes: 3 additions & 1 deletion src/run.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "node:path";
import type { Changeset } from "@changesets/types";
import writeChangeset from "@changesets/write";
import { writeChangeset } from "@changesets/write";
import { createFixture } from "fs-fixture";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { GitHub } from "./github.ts";
Expand Down Expand Up @@ -56,6 +56,7 @@ function createSimpleProjectFixture() {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
});
}

Expand All @@ -82,6 +83,7 @@ function createIgnoredPackageFixture() {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function runPublish({
let { packages, tool } = await getPackages(cwd);
let releasedPackages: Package[] = [];

if (tool !== "root") {
if (tool.type !== "root") {
let newTagRegex = /New tag:\s+(@[^/]+\/[^@]+|[^/]+)@([^\s]+)/;
let packagesByName = new Map(packages.map((x) => [x.packageJson.name, x]));

Expand Down