Skip to content

Commit f5d36a1

Browse files
release: cli v4.0.2
1 parent 7a2445a commit f5d36a1

15 files changed

Lines changed: 50 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- name: Create release PR or publish
3535
uses: changesets/action@v1
3636
with:
37+
version: pnpm changeset:version
3738
publish: pnpm changeset publish
3839
title: 'chore: version packages'
3940
commit: 'chore: version packages'

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"oxfmt",
4949
"oxlint",
5050
"patchpulse",
51+
"Updateable",
5152
"vitest"
5253
]
5354
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"test": "pnpm run test:shared && pnpm run test:cli && pnpm run test:notifier",
4646
"typecheck": "pnpm --filter patch-pulse typecheck && pnpm --filter @patch-pulse/notifier-bot typecheck",
4747
"changeset": "changeset",
48-
"changeset:version": "changeset version",
48+
"changeset:version": "changeset version && pnpm --filter patch-pulse exec node scripts/generate-version.cjs",
4949
"changeset:publish": "pnpm build:cli && changeset publish"
5050
}
5151
}

packages/cli/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# patch-pulse
22

3+
## 4.0.2
4+
5+
### Patch Changes
6+
7+
- Polish the CLI output and keep the autogenerated version file in sync during releases.
8+
- replace the static CLI example image with an animated GIF in the package assets and README
9+
- simplify project headers by folding the `package.json` path into the main project line
10+
- improve output hierarchy by making project headers stand out more clearly in monorepo reports
11+
- regenerate `src/gen/version.gen.ts` as part of `changeset:version` so release PRs keep the embedded CLI version aligned with `package.json`
12+
313
## 4.0.1
414

515
### Patch Changes

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Docs: https://barrymichaeldoyle.github.io/patch-pulse/
2626
- Monorepo-aware, including pnpm `catalog:` support
2727
- Interactive terminal updates for patch, minor, or all outdated packages
2828

29-
![Example Screenshot](assets/example.png)
29+
![Example CLI Demo](assets/example.gif)
3030

3131
## Configuration
3232

packages/cli/assets/example.gif

149 KB
Loading

packages/cli/assets/example.png

-294 KB
Binary file not shown.

packages/cli/e2e/basic/__snapshots__/basic.test.ts.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`basic project > prints a full dependency summary 1`] = `
4-
"fixture-basic
5-
Location: package.json
4+
"fixture-basic (package.json)
65
────────────────────────────────────────────────────────────
76
Dependencies:
87
─────────────

packages/cli/e2e/monorepo/__snapshots__/monorepo.test.ts.snap

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`monorepo project > prints a full monorepo summary 1`] = `
4-
"@fixture/admin (packages/admin)
5-
Location: packages/admin/package.json
4+
"@fixture/admin (packages/admin/package.json)
65
────────────────────────────────────────────────────────────
76
✓ Up to date: 1 package
8-
@fixture/app (packages/app)
9-
Location: packages/app/package.json
7+
@fixture/app (packages/app/package.json)
108
────────────────────────────────────────────────────────────
119
✓ Up to date: 2 packages
1210
════════════════════════════════════════════════════════════

packages/cli/e2e/monorepo/monorepo.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('monorepo project', () => {
148148
expect(exitCode).toBe(0);
149149
const output = stripAnsi(logSpy.mock.calls.flat().join('\n'));
150150
expect(output).not.toContain('@fixture/admin (packages/admin)');
151-
expect(output).toContain('@fixture/app (packages/app)');
151+
expect(output).toContain('@fixture/app (packages/app/package.json)');
152152
expect(output).toContain(
153153
'! Attention: 1 package needs review (1 outdated)',
154154
);
@@ -165,7 +165,7 @@ describe('monorepo project', () => {
165165

166166
expect(exitCode).toBe(0);
167167
const output = stripAnsi(logSpy.mock.calls.flat().join('\n'));
168-
expect(output).toContain('@fixture/app (packages/app)');
168+
expect(output).toContain('@fixture/app (packages/app/package.json)');
169169
expect(output).not.toContain('@fixture/admin (packages/admin)');
170170
expect(output).not.toContain('@repo/shared');
171171
});

0 commit comments

Comments
 (0)