@zuplo/cli 1.75.0 → 1.77.0

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.
@@ -1,10 +1,10 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fe20d450-f9b0-547f-8255-96a0edc7e86b")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0da34659-f864-54aa-a7c3-eb71f09560d2")}catch(e){}}();
3
3
  import * as dotenv from "dotenv";
4
4
  import { cpSync, existsSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
6
6
  import { join, relative, resolve } from "node:path";
7
- import { fileURLToPath } from "node:url";
7
+ import { fileURLToPath, pathToFileURL } from "node:url";
8
8
  import { locateDenoExecutable } from "../common/deno-utils/locator.js";
9
9
  export async function dev(argv) {
10
10
  const sourceDirectory = resolve(join(relative(process.cwd(), argv.dir)));
@@ -21,6 +21,10 @@ export async function dev(argv) {
21
21
  const config = dotenv.parse(await readFile(envFile, "utf-8"));
22
22
  dotenv.populate(process.env, config);
23
23
  }
24
+ const config = {
25
+ build_assets_url: pathToFileURL(sourceDirectory),
26
+ };
27
+ process.env.__ZUPLO_CONFIG = btoa(JSON.stringify(config));
24
28
  const core = await import("@zuplo/core");
25
29
  const port = argv.port ?? 9000;
26
30
  const serverProcess = await core.default.startDevServer({
@@ -37,4 +41,4 @@ export async function dev(argv) {
37
41
  });
38
42
  }
39
43
  //# sourceMappingURL=handler.js.map
40
- //# debugId=fe20d450-f9b0-547f-8255-96a0edc7e86b
44
+ //# debugId=0da34659-f864-54aa-a7c3-eb71f09560d2