@ingit/cli 0.1.7 → 0.1.9

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 CHANGED
@@ -9,8 +9,8 @@ npm install -g @ingit/cli
9
9
  ```
10
10
 
11
11
  No runtime dependencies — the binary is self-contained (the Bun runtime is
12
- embedded). Prebuilt binaries are provided for linux (x64/arm64) and macOS
13
- (x64/arm64).
12
+ embedded). Prebuilt binaries are provided for Linux (x64/arm64), macOS
13
+ (x64/arm64), and Windows (x64).
14
14
 
15
15
  ## Local testing from this repo
16
16
 
@@ -38,6 +38,9 @@ bun run --filter '@ingit/cli' release linux-x64
38
38
 
39
39
  You only need to run `bun link` again if the package/link setup changes.
40
40
 
41
+ On Windows, use `win32-x64` as the release target. The generated executable is
42
+ `apps/cli/release/cli-win32-x64/ingit.exe`.
43
+
41
44
  ## Usage
42
45
 
43
46
  ```sh
package/bin/ingit.cjs CHANGED
@@ -13,17 +13,18 @@ const platform = process.platform
13
13
  const arch = process.arch
14
14
  const pkgName = `@ingit/cli-${platform}-${arch}`
15
15
  const platformId = `${platform}-${arch}`
16
+ const binaryName = platform === 'win32' ? 'ingit.exe' : 'ingit'
16
17
 
17
18
  let binPath
18
19
  try {
19
- binPath = require.resolve(`${pkgName}/ingit`)
20
+ binPath = require.resolve(`${pkgName}/${binaryName}`)
20
21
  } catch {
21
22
  const localBinPath = join(
22
23
  __dirname,
23
24
  '..',
24
25
  'release',
25
26
  `cli-${platformId}`,
26
- platform === 'win32' ? 'ingit.exe' : 'ingit',
27
+ binaryName,
27
28
  )
28
29
  if (existsSync(localBinPath)) {
29
30
  binPath = localBinPath
@@ -31,7 +32,7 @@ try {
31
32
  console.error(`ingit: no prebuilt binary available for ${platform}-${arch}.`)
32
33
  console.error(`Expected the optional dependency "${pkgName}" to be installed.`)
33
34
  console.error(`For local testing, run "bun run --filter '@ingit/cli' release ${platformId}" from the repo root.`)
34
- console.error('Supported: linux-x64, linux-arm64, darwin-x64, darwin-arm64.')
35
+ console.error('Supported: linux-x64, linux-arm64, darwin-x64, darwin-arm64, win32-x64.')
35
36
  process.exit(1)
36
37
  }
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingit/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Local git history & graph viewer in your browser",
5
5
  "bin": {
6
6
  "ingit": "bin/ingit.cjs"
@@ -10,10 +10,11 @@
10
10
  "README.md"
11
11
  ],
12
12
  "optionalDependencies": {
13
- "@ingit/cli-linux-x64": "0.1.7",
14
- "@ingit/cli-linux-arm64": "0.1.7",
15
- "@ingit/cli-darwin-x64": "0.1.7",
16
- "@ingit/cli-darwin-arm64": "0.1.7"
13
+ "@ingit/cli-linux-x64": "0.1.9",
14
+ "@ingit/cli-linux-arm64": "0.1.9",
15
+ "@ingit/cli-darwin-x64": "0.1.9",
16
+ "@ingit/cli-darwin-arm64": "0.1.9",
17
+ "@ingit/cli-win32-x64": "0.1.9"
17
18
  },
18
19
  "license": "MIT",
19
20
  "engines": {