kajji 0.14.0 → 0.15.0
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/README.md +2 -1
- package/package.json +5 -5
- package/scripts/postinstall.mjs +16 -16
package/README.md
CHANGED
|
@@ -132,7 +132,8 @@ Common settings include:
|
|
|
132
132
|
- `diff.autoSwitchWidth`: terminal width where `auto` switches to split view
|
|
133
133
|
- `diff.wrap`: wrap long diff lines
|
|
134
134
|
- `diff.useJjFormatter`: use jj's configured diff formatter in the detail pane
|
|
135
|
-
- `
|
|
135
|
+
- `gitHooksPath`: default Git-compatible hooks directory to check for `pre-commit` before `jj.new` (`.git/hooks` enables standard per-repo Git hooks in every repo)
|
|
136
|
+
- `repos`: repo-specific `gitHooksPath` and operation hooks keyed by repository path
|
|
136
137
|
- `whatsNewDisabled` / `autoUpdatesDisabled`: update notification controls
|
|
137
138
|
|
|
138
139
|
## Keybindings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kajji",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "A terminal UI for Jujutsu: the rudder for your jj",
|
|
5
5
|
"bin": {
|
|
6
6
|
"kajji": "./bin/kajji"
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"postinstall": "node ./scripts/postinstall.mjs"
|
|
10
10
|
},
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"kajji-darwin-arm64": "0.
|
|
13
|
-
"kajji-darwin-x64": "0.
|
|
14
|
-
"kajji-linux-x64": "0.
|
|
15
|
-
"kajji-linux-arm64": "0.
|
|
12
|
+
"kajji-darwin-arm64": "0.15.0",
|
|
13
|
+
"kajji-darwin-x64": "0.15.0",
|
|
14
|
+
"kajji-linux-x64": "0.15.0",
|
|
15
|
+
"kajji-linux-arm64": "0.15.0"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -14,37 +14,37 @@ const platform = platformMap[os.platform()]
|
|
|
14
14
|
const arch = archMap[os.arch()]
|
|
15
15
|
|
|
16
16
|
if (!platform || !arch) {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
console.log(`Unsupported platform: ${os.platform()}-${os.arch()}`)
|
|
18
|
+
process.exit(0)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const packageName = `kajji-${platform}-${arch}`
|
|
22
22
|
|
|
23
23
|
let packageDir
|
|
24
24
|
try {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const packageJsonPath = require.resolve(`${packageName}/package.json`, {
|
|
26
|
+
paths: [path.join(__dirname, "..")],
|
|
27
|
+
})
|
|
28
|
+
packageDir = path.dirname(packageJsonPath)
|
|
29
29
|
} catch {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
console.log(`Platform package ${packageName} not found, skipping symlink`)
|
|
31
|
+
process.exit(0)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const binaryPath = path.join(packageDir, "bin", "kajji")
|
|
35
35
|
const targetPath = path.join(__dirname, "..", "bin", "kajji-binary")
|
|
36
36
|
|
|
37
37
|
if (!fs.existsSync(binaryPath)) {
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
console.log(`Binary not found at ${binaryPath}`)
|
|
39
|
+
process.exit(0)
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
try {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
if (fs.existsSync(targetPath)) {
|
|
44
|
+
fs.unlinkSync(targetPath)
|
|
45
|
+
}
|
|
46
|
+
fs.symlinkSync(binaryPath, targetPath)
|
|
47
|
+
console.log(`kajji binary linked: ${targetPath} -> ${binaryPath}`)
|
|
48
48
|
} catch (err) {
|
|
49
|
-
|
|
49
|
+
console.log(`Could not create symlink: ${err.message}`)
|
|
50
50
|
}
|