@kud/revu-cli 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/release.sh +28 -0
- package/package.json +8 -8
package/bin/release.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Repo-local release policy, detected and used by /k-release (Step 0.5).
|
|
3
|
+
#
|
|
4
|
+
# revu-cli ships a main package (@kud/revu-cli) plus three platform sub-packages
|
|
5
|
+
# (npm-packages/{darwin-arm64,linux-x64,linux-arm64}) whose versions must stay in
|
|
6
|
+
# lockstep, or the CI publish rejects a re-published version. scripts/bump.ts
|
|
7
|
+
# handles that sync + commit + tag + push. Generic `git lzv` only bumps the root
|
|
8
|
+
# package and is unaware of the sub-packages, so releases MUST route through here.
|
|
9
|
+
set -euo pipefail
|
|
10
|
+
|
|
11
|
+
bump="${1:-patch}"
|
|
12
|
+
case "$bump" in
|
|
13
|
+
patch | minor | major) ;;
|
|
14
|
+
*)
|
|
15
|
+
echo "Usage: bin/release.sh [patch|minor|major]" >&2
|
|
16
|
+
exit 1
|
|
17
|
+
;;
|
|
18
|
+
esac
|
|
19
|
+
|
|
20
|
+
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
|
|
21
|
+
cd "$repo_root"
|
|
22
|
+
|
|
23
|
+
# /k-release writes CHANGELOG.md before invoking this script. scripts/bump.ts
|
|
24
|
+
# only stages the version files, so stage the changelog here to fold it into the
|
|
25
|
+
# same release commit.
|
|
26
|
+
git add CHANGELOG.md 2>/dev/null || true
|
|
27
|
+
|
|
28
|
+
exec bun run "bump:${bump}"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/revu-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Interactive terminal diff reviewer",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -23,9 +23,12 @@
|
|
|
23
23
|
"bump:major": "bun scripts/bump.ts major"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@kud/revu-cli-darwin-arm64": "1.1.
|
|
27
|
-
"@kud/revu-cli-linux-x64": "1.1.
|
|
28
|
-
"@kud/revu-cli-linux-arm64": "1.1.
|
|
26
|
+
"@kud/revu-cli-darwin-arm64": "1.1.2",
|
|
27
|
+
"@kud/revu-cli-linux-x64": "1.1.2",
|
|
28
|
+
"@kud/revu-cli-linux-arm64": "1.1.2",
|
|
29
|
+
"@opentui/core-darwin-arm64": "0.1.96",
|
|
30
|
+
"@opentui/core-linux-arm64": "0.1.96",
|
|
31
|
+
"@opentui/core-linux-x64": "0.1.96"
|
|
29
32
|
},
|
|
30
33
|
"devDependencies": {
|
|
31
34
|
"@types/bun": "latest"
|
|
@@ -34,10 +37,7 @@
|
|
|
34
37
|
"typescript": "^5"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"@opentui/core": "0.1.95"
|
|
38
|
-
"@opentui/core-darwin-arm64": "0.1.96",
|
|
39
|
-
"@opentui/core-linux-arm64": "0.1.96",
|
|
40
|
-
"@opentui/core-linux-x64": "0.1.96"
|
|
40
|
+
"@opentui/core": "0.1.95"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|