@kud/revu-cli 1.0.0 → 1.0.7
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/revu.js +9 -3
- package/package.json +12 -7
package/bin/revu.js
CHANGED
|
@@ -6,16 +6,22 @@ const require = createRequire(import.meta.url)
|
|
|
6
6
|
|
|
7
7
|
const PACKAGES = {
|
|
8
8
|
"darwin-arm64": "@kud/revu-cli-darwin-arm64",
|
|
9
|
-
"darwin-x64": "@kud/revu-cli-darwin-x64",
|
|
10
9
|
"linux-x64": "@kud/revu-cli-linux-x64",
|
|
11
10
|
"linux-arm64": "@kud/revu-cli-linux-arm64",
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
// Intel Macs run the arm64 binary via Rosetta
|
|
14
|
+
const platform =
|
|
15
|
+
process.platform === "darwin" && process.arch === "x64"
|
|
16
|
+
? "darwin-arm64"
|
|
17
|
+
: `${process.platform}-${process.arch}`
|
|
18
|
+
|
|
15
19
|
const pkg = PACKAGES[platform]
|
|
16
20
|
|
|
17
21
|
if (!pkg) {
|
|
18
|
-
console.error(
|
|
22
|
+
console.error(
|
|
23
|
+
`revu-cli: unsupported platform: ${process.platform}-${process.arch}`,
|
|
24
|
+
)
|
|
19
25
|
process.exit(1)
|
|
20
26
|
}
|
|
21
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/revu-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Interactive terminal diff reviewer",
|
|
5
5
|
"module": "index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
"start": "bun index.ts",
|
|
16
16
|
"build": "bun build --compile --minify index.ts --outfile revu-bin",
|
|
17
17
|
"build:darwin-arm64": "bun build --compile --minify --target=bun-darwin-arm64 index.ts --outfile npm-packages/darwin-arm64/revu-bin",
|
|
18
|
-
"build:darwin-x64": "bun build --compile --minify --target=bun-darwin-x64 index.ts --outfile npm-packages/darwin-x64/revu-bin",
|
|
19
18
|
"build:linux-x64": "bun build --compile --minify --target=bun-linux-x64 index.ts --outfile npm-packages/linux-x64/revu-bin",
|
|
20
19
|
"build:linux-arm64": "bun build --compile --minify --target=bun-linux-arm64 index.ts --outfile npm-packages/linux-arm64/revu-bin",
|
|
21
|
-
"build:all": "bun run build:darwin-arm64 && bun run build:
|
|
20
|
+
"build:all": "bun run build:darwin-arm64 && bun run build:linux-x64 && bun run build:linux-arm64",
|
|
21
|
+
"bump:patch": "bun scripts/bump.ts patch",
|
|
22
|
+
"bump:minor": "bun scripts/bump.ts minor",
|
|
23
|
+
"bump:major": "bun scripts/bump.ts major"
|
|
22
24
|
},
|
|
23
25
|
"optionalDependencies": {
|
|
24
|
-
"@kud/revu-cli-darwin-arm64": "1.0.
|
|
25
|
-
"@kud/revu-cli-
|
|
26
|
-
"@kud/revu-cli-linux-
|
|
27
|
-
"@kud/revu-cli-linux-arm64": "1.0.0"
|
|
26
|
+
"@kud/revu-cli-darwin-arm64": "1.0.7",
|
|
27
|
+
"@kud/revu-cli-linux-x64": "1.0.7",
|
|
28
|
+
"@kud/revu-cli-linux-arm64": "1.0.7"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/bun": "latest"
|
|
@@ -38,6 +39,10 @@
|
|
|
38
39
|
"@opentui/core-linux-arm64": "0.1.96",
|
|
39
40
|
"@opentui/core-linux-x64": "0.1.96"
|
|
40
41
|
},
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/kud/revu-cli"
|
|
45
|
+
},
|
|
41
46
|
"license": "MIT",
|
|
42
47
|
"keywords": [
|
|
43
48
|
"diff",
|