kajji 0.14.0 → 0.14.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kajji",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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.14.0",
13
- "kajji-darwin-x64": "0.14.0",
14
- "kajji-linux-x64": "0.14.0",
15
- "kajji-linux-arm64": "0.14.0"
12
+ "kajji-darwin-arm64": "0.14.1",
13
+ "kajji-darwin-x64": "0.14.1",
14
+ "kajji-linux-x64": "0.14.1",
15
+ "kajji-linux-arm64": "0.14.1"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
@@ -14,37 +14,37 @@ const platform = platformMap[os.platform()]
14
14
  const arch = archMap[os.arch()]
15
15
 
16
16
  if (!platform || !arch) {
17
- console.log(`Unsupported platform: ${os.platform()}-${os.arch()}`)
18
- process.exit(0)
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
- const packageJsonPath = require.resolve(`${packageName}/package.json`, {
26
- paths: [path.join(__dirname, "..")],
27
- })
28
- packageDir = path.dirname(packageJsonPath)
25
+ const packageJsonPath = require.resolve(`${packageName}/package.json`, {
26
+ paths: [path.join(__dirname, "..")],
27
+ })
28
+ packageDir = path.dirname(packageJsonPath)
29
29
  } catch {
30
- console.log(`Platform package ${packageName} not found, skipping symlink`)
31
- process.exit(0)
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
- console.log(`Binary not found at ${binaryPath}`)
39
- process.exit(0)
38
+ console.log(`Binary not found at ${binaryPath}`)
39
+ process.exit(0)
40
40
  }
41
41
 
42
42
  try {
43
- if (fs.existsSync(targetPath)) {
44
- fs.unlinkSync(targetPath)
45
- }
46
- fs.symlinkSync(binaryPath, targetPath)
47
- console.log(`kajji binary linked: ${targetPath} -> ${binaryPath}`)
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
- console.log(`Could not create symlink: ${err.message}`)
49
+ console.log(`Could not create symlink: ${err.message}`)
50
50
  }