@aerostack/cli 1.5.14 → 1.5.19

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/bin/run.js +10 -8
  2. package/package.json +1 -1
package/bin/run.js CHANGED
@@ -16,7 +16,15 @@ import { fileURLToPath } from 'url';
16
16
 
17
17
  const __dirname = fileURLToPath(new URL('.', import.meta.url));
18
18
 
19
- // ─── 1. Hybrid Dispatcher ──────────────────────────────────────────────────────
19
+ // ─── 1. Constants ─────────────────────────────────────────────────────────────
20
+
21
+ const REPO = "aerostackdev/cli";
22
+ const BINARY = "aerostack";
23
+ // Use HOME or USERPROFILE for global install location
24
+ const HOME = process.env.HOME || process.env.USERPROFILE || tmpdir();
25
+ const INSTALL_DIR = process.env.AEROSTACK_INSTALL_DIR || join(HOME, ".aerostack", "bin");
26
+
27
+ // ─── 2. Hybrid Dispatcher ──────────────────────────────────────────────────────
20
28
 
21
29
  const args = process.argv.slice(2);
22
30
  const command = args[0];
@@ -39,13 +47,7 @@ if (command && NODE_COMMANDS.includes(command)) {
39
47
  });
40
48
  }
41
49
 
42
- // ─── 2. Go Binary Downloader (Legacy) ──────────────────────────────────────────
43
-
44
- const REPO = "aerostackdev/cli";
45
- const BINARY = "aerostack";
46
- // Use HOME or USERPROFILE for global install location
47
- const HOME = process.env.HOME || process.env.USERPROFILE || tmpdir();
48
- const INSTALL_DIR = process.env.AEROSTACK_INSTALL_DIR || join(HOME, ".aerostack", "bin");
50
+ // ─── 3. Go Binary Downloader (Legacy) ──────────────────────────────────────────
49
51
 
50
52
  function getPlatform() {
51
53
  const platform = getOsPlatform();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aerostack/cli",
3
- "version": "1.5.14",
3
+ "version": "1.5.19",
4
4
  "description": "Aerostack CLI - Zero-config serverless development for Cloudflare",
5
5
  "type": "module",
6
6
  "files": [