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
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ catalog:
"@eslint/json": 2.1.0
"@eslint/markdown": 8.0.3
"@exadev/eslint-config": 3.1.0
"@exadev/semantic-release-workspace": 3.1.29
"@exadev/semantic-release-workspace": 3.2.0
"@orpc/client": 2.0.0-beta.41
"@orpc/contract": 2.0.0-beta.41
"@orpc/server": 2.0.0-beta.41
Expand Down
3 changes: 3 additions & 0 deletions release-workspace.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,14 @@ const config: Pick<
| "commitStrategy"
| "plugins"
| "packagePlugins"
| "bundlingPackages"
| "analyzeCommits"
| "generateNotes"
> = {
branches: ["main"],
commitStrategy: "single",
// The one published package inlines the private workspace packages, so it releases at the highest type among the bundled packages that released in the run: a `feat` in a bundled package is a minor release of `process-graph`, not a patch.
bundlingPackages: ["process-graph"],
plugins,
packagePlugins: Object.fromEntries(
workspace.packages
Expand Down
12 changes: 12 additions & 0 deletions release-workspace.config.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,16 @@ describe("release-workspace.config.ts", () => {
expect(config.plugins).toContain("@semantic-release/changelog");
expect(config.plugins).toContain("@semantic-release/github");
});

it("names every published package as one that bundles its private siblings", async () => {
const workspace = await discoverWorkspace(import.meta.dirname);
const published = workspace.packages
.filter((pkg) => !pkg.private)
.map((pkg) => pkg.name)
.sort();

expect([...(config.bundlingPackages ?? [])].sort()).toStrictEqual(
published,
);
});
});