@base44-preview/cli 0.0.38-pr.362.5d9aeb5 → 0.0.38-pr.362.db7a625

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": "@base44-preview/cli",
3
- "version": "0.0.38-pr.362.5d9aeb5",
3
+ "version": "0.0.38-pr.362.db7a625",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,40 +0,0 @@
1
- /**
2
- * Entry point for standalone compiled binaries (built with `bun build --compile`).
3
- *
4
- * This file embeds a single assets tarball (templates + deno-runtime) into the
5
- * binary and extracts it to ~/.base44/assets/<version>/ on first run.
6
- * The npm distribution uses bin/run.js instead — this file is only used
7
- * for the compiled binary path.
8
- */
9
- import { existsSync, mkdirSync } from "node:fs";
10
- import { homedir } from "node:os";
11
- import { join } from "node:path";
12
- // Bun embeds this file into the compiled binary.
13
- // At runtime, it resolves to a path inside the $bunfs virtual filesystem.
14
- // Only Bun.file() can read these paths — Node.js fs APIs and external
15
- // processes cannot access them directly.
16
- // @ts-expect-error -- import attributes with type "file" are a Bun-specific feature
17
- import assetsTarball from "../dist/assets.tar.gz" with { type: "file" };
18
- import packageJson from "../package.json";
19
-
20
- const VERSION = packageJson.version;
21
-
22
- const assetsDir = join(homedir(), ".base44", "assets", VERSION);
23
-
24
- // Extract assets if this version hasn't been unpacked yet.
25
- // Bun.file() reads from the virtual $bunfs, then we write to real disk
26
- // so the rest of the CLI can access these files normally.
27
- if (!existsSync(assetsDir)) {
28
- mkdirSync(assetsDir, { recursive: true });
29
- const bytes = await Bun.file(assetsTarball).bytes();
30
- const archive = new Bun.Archive(bytes);
31
- await archive.extract(assetsDir);
32
- }
33
-
34
- // Disable Clack spinners and animations in non-interactive environments.
35
- if (!process.stdin.isTTY || !process.stdout.isTTY) {
36
- process.env.CI = "true";
37
- }
38
-
39
- const { runCLI } = await import("../src/cli/index.js");
40
- await runCLI({ assetsDir });