Skip to content

Commit 823cf74

Browse files
bluwyAndarist
andauthored
Update to changesets v3 packages (#673)
* Update to changesets v3 packages * Dedupe * Fix test * Fix test 2 * update more --------- Co-authored-by: Mateusz Burzyński <[email protected]>
1 parent b12c36a commit 823cf74

9 files changed

Lines changed: 302 additions & 723 deletions

File tree

‎.changeset/shaky-rings-type.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@changesets/action": major
3+
---
4+
5+
Update to Changesets v3 packages

‎package.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"@actions/core": "^3.0.1",
2222
"@actions/exec": "^3.0.0",
2323
"@actions/github": "^9.1.1",
24-
"@changesets/get-release-plan": "^4.0.16",
24+
"@changesets/get-release-plan": "^5.0.0-next.6",
2525
"@changesets/ghcommit": "^2.1.1",
26-
"@changesets/git": "^3.0.4",
27-
"@changesets/pre": "^2.0.2",
28-
"@changesets/read": "^0.6.7",
29-
"@manypkg/get-packages": "^1.1.3",
26+
"@changesets/git": "^4.0.0-next.5",
27+
"@changesets/pre": "^3.0.0-next.5",
28+
"@changesets/read": "^1.0.0-next.6",
29+
"@manypkg/get-packages": "^3.1.0",
3030
"@octokit/core": "^7.0.6",
3131
"@octokit/plugin-throttling": "^11.0.3",
3232
"human-id": "^4.1.3",
@@ -35,10 +35,10 @@
3535
"tinyexec": "^1.2.4"
3636
},
3737
"devDependencies": {
38-
"@changesets/changelog-github": "^0.7.0",
39-
"@changesets/cli": "^2.31.0",
40-
"@changesets/types": "^6.1.0",
41-
"@changesets/write": "^0.4.0",
38+
"@changesets/changelog-github": "^1.0.0-next.5",
39+
"@changesets/cli": "^3.0.0-next.6",
40+
"@changesets/types": "^7.0.0-next.5",
41+
"@changesets/write": "^1.0.0-next.5",
4242
"@tsconfig/node24": "^24.0.4",
4343
"@types/node": "^24.12.4",
4444
"@types/semver": "^7.7.1",

‎pnpm-lock.yaml‎

Lines changed: 269 additions & 708 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@ dedupePeers: true
33
dedupePeerDependents: true
44
minimumReleaseAge: 10080
55
minimumReleaseAgeExclude:
6-
- "@changesets/[email protected]"
6+
- "@changesets/[email protected]"
7+
- "@changesets/[email protected]"
8+
- "@changesets/[email protected]"
9+
- "@changesets/[email protected]"
10+
- "@changesets/[email protected]"
11+
- "@changesets/[email protected]"
12+
- "@changesets/[email protected]"
13+
- "@changesets/[email protected]"
14+
- "@changesets/[email protected]"
15+
- "@changesets/[email protected]"
16+
- "@changesets/[email protected]"
717

818
overrides:
919
lightningcss: "-" # we do not bundle any css

‎src/pr-status/message.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as github from "@actions/github";
2-
import getReleasePlan from "@changesets/get-release-plan";
2+
import { getReleasePlan } from "@changesets/get-release-plan";
33
import type {
44
ComprehensiveRelease,
55
ReleasePlan,

‎src/pr-status/worktree.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { pathToFileURL } from "node:url";
22
import type * as github from "@actions/github";
3-
import getReleasePlan from "@changesets/get-release-plan";
3+
import { getReleasePlan } from "@changesets/get-release-plan";
44
import { createFixture } from "fs-fixture";
55
import { exec } from "tinyexec";
66
import { describe, expect, it } from "vitest";
@@ -28,6 +28,7 @@ describe("getPullRequestWorktree", () => {
2828
private: true,
2929
workspaces: ["packages/*"],
3030
}),
31+
"package-lock.json": "",
3132
"packages/pkg-a/package.json": JSON.stringify({
3233
name: "pkg-a",
3334
version: "1.0.0",

‎src/readChangesetState.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { readPreState } from "@changesets/pre";
2-
import readChangesets from "@changesets/read";
2+
import { readChangesets } from "@changesets/read";
33
import type { PreState, NewChangeset } from "@changesets/types";
44

55
export type ChangesetState = {

‎src/run.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import path from "node:path";
22
import type { Changeset } from "@changesets/types";
3-
import writeChangeset from "@changesets/write";
3+
import { writeChangeset } from "@changesets/write";
44
import { createFixture } from "fs-fixture";
55
import { beforeEach, describe, expect, it, vi } from "vitest";
66
import { GitHub } from "./github.ts";
@@ -56,6 +56,7 @@ function createSimpleProjectFixture() {
5656
private: true,
5757
workspaces: ["packages/*"],
5858
}),
59+
"package-lock.json": "",
5960
});
6061
}
6162

@@ -82,6 +83,7 @@ function createIgnoredPackageFixture() {
8283
private: true,
8384
workspaces: ["packages/*"],
8485
}),
86+
"package-lock.json": "",
8587
});
8688
}
8789

‎src/run.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export async function runPublish({
117117
let { packages, tool } = await getPackages(cwd);
118118
let releasedPackages: Package[] = [];
119119

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

0 commit comments

Comments
 (0)