backlog.md 0.1.19 → 0.1.20

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.
Files changed (2) hide show
  1. package/cli.js +1 -43
  2. package/package.json +1 -8
package/cli.js CHANGED
@@ -6,49 +6,7 @@ const fs = require("node:fs");
6
6
  const https = require("node:https");
7
7
  const { createWriteStream, chmodSync } = require("node:fs");
8
8
 
9
- // Determine the correct binary based on platform and architecture
10
- function getBinaryName() {
11
- const platform = process.platform;
12
- const arch = process.arch;
13
-
14
- let binaryName = "backlog-";
15
-
16
- // Map Node.js platform names to Bun target names
17
- switch (platform) {
18
- case "linux":
19
- binaryName += "bun-linux-";
20
- break;
21
- case "darwin":
22
- binaryName += "bun-darwin-";
23
- break;
24
- case "win32":
25
- binaryName += "bun-windows-";
26
- break;
27
- default:
28
- console.error(`Unsupported platform: ${platform}`);
29
- process.exit(1);
30
- }
31
-
32
- // Map Node.js arch names to Bun target names
33
- switch (arch) {
34
- case "x64":
35
- binaryName += "x64";
36
- break;
37
- case "arm64":
38
- binaryName += "arm64";
39
- break;
40
- default:
41
- console.error(`Unsupported architecture: ${arch}`);
42
- process.exit(1);
43
- }
44
-
45
- // Windows executables have .exe extension
46
- if (platform === "win32") {
47
- binaryName += ".exe";
48
- }
49
-
50
- return binaryName;
51
- }
9
+ const { getBinaryName } = require("./getBinaryName.cjs");
52
10
 
53
11
  // Download binary from GitHub releases
54
12
  async function downloadBinary(binaryName, binaryPath) {
package/package.json CHANGED
@@ -1,16 +1,9 @@
1
1
  {
2
2
  "name": "backlog.md",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "bin": {
5
5
  "backlog": "cli.js"
6
6
  },
7
- "dependencies": {
8
- "@types/prompts": "^2.4.9",
9
- "blessed": "0.1.81",
10
- "commander": "14.0.0",
11
- "gray-matter": "4.0.3",
12
- "prompts": "2.4.2"
13
- },
14
7
  "scripts": {
15
8
  "test": "bun test",
16
9
  "format": "biome format --write .",