aka-cli 1.0.13 → 1.0.22

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/aka.js ADDED
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require("child_process");
4
+ const path = require("path");
5
+ const fs = require("fs");
6
+
7
+ const binaryPath = path.join(__dirname, "aka");
8
+
9
+ // Check if binary exists
10
+ if (!fs.existsSync(binaryPath)) {
11
+ console.error("❌ The aka binary was not installed correctly.");
12
+ console.error("Please try reinstalling: npm install -g aka-cli");
13
+ process.exit(1);
14
+ }
15
+
16
+ // Execute the binary
17
+ const child = spawn(binaryPath, process.argv.slice(2), {
18
+ stdio: "inherit",
19
+ });
20
+
21
+ child.on("exit", (code) => {
22
+ process.exit(code || 0);
23
+ });
24
+
25
+ child.on("error", (err) => {
26
+ console.error("❌ Failed to execute aka:", err.message);
27
+ process.exit(1);
28
+ });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "aka-cli",
3
- "version": "1.0.13",
3
+ "version": "1.0.22",
4
4
  "description": "A simple alias manager that lets you add, list, and apply command aliases",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "aka": "./bin/aka"
7
+ "aka": "./bin/aka.js"
8
8
  },
9
9
  "scripts": {
10
10
  "postinstall": "node scripts/postinstall.js"
@@ -30,8 +30,9 @@
30
30
  "url": "https://github.com/fdorantesm/aka/issues"
31
31
  },
32
32
  "files": [
33
- "bin/",
33
+ "bin/aka.js",
34
34
  "scripts/",
35
+ "index.js",
35
36
  "README.md"
36
37
  ],
37
38
  "os": [
package/bin/.gitkeep DELETED
@@ -1 +0,0 @@
1
- # This directory will contain the aka binary after installation
package/bin/aka DELETED
Binary file