@base44-preview/cli 0.0.37-pr.362.087c6d1 → 0.0.37-pr.362.a4d74a2

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/dist/cli/index.js CHANGED
@@ -226137,6 +226137,12 @@ import { homedir } from "node:os";
226137
226137
  import { dirname, join } from "node:path";
226138
226138
  import { fileURLToPath } from "node:url";
226139
226139
 
226140
+ // src/core/assets.ts
226141
+ var assetsDir;
226142
+ function getAssetsDir() {
226143
+ return assetsDir;
226144
+ }
226145
+
226140
226146
  // src/core/consts.ts
226141
226147
  var PROJECT_SUBDIR = "base44";
226142
226148
  var CONFIG_FILE_EXTENSION = "jsonc";
@@ -226213,8 +226219,9 @@ function getAuthFilePath() {
226213
226219
  return join(getBase44GlobalDir(), "auth", "auth.json");
226214
226220
  }
226215
226221
  function getTemplatesDir() {
226216
- if (globalThis.__BASE44_TEMPLATES_DIR)
226217
- return globalThis.__BASE44_TEMPLATES_DIR;
226222
+ const assets = getAssetsDir();
226223
+ if (assets)
226224
+ return join(assets, "templates");
226218
226225
  return join(__dirname2, "../templates");
226219
226226
  }
226220
226227
  function getTemplatesIndexPath() {
@@ -244049,7 +244056,7 @@ import { spawn as spawn2, spawnSync as spawnSync2 } from "node:child_process";
244049
244056
  import { dirname as dirname11, join as join15 } from "node:path";
244050
244057
  import { fileURLToPath as fileURLToPath7 } from "node:url";
244051
244058
  var __dirname5 = dirname11(fileURLToPath7(import.meta.url));
244052
- var WRAPPER_PATH = globalThis.__BASE44_DENO_WRAPPER_PATH ?? join15(__dirname5, "../deno-runtime/main.js");
244059
+ var WRAPPER_PATH = getAssetsDir() ? join15(getAssetsDir(), "deno-runtime", "main.js") : join15(__dirname5, "../deno-runtime/main.js");
244053
244060
  var READY_TIMEOUT = 30000;
244054
244061
 
244055
244062
  class FunctionManager {
@@ -250792,4 +250799,4 @@ export {
250792
250799
  CLIExitError
250793
250800
  };
250794
250801
 
250795
- //# debugId=E57761FB5259698B64756E2164756E21
250802
+ //# debugId=4E2AD1F555A8C53364756E2164756E21