@absolutejs/absolute 0.20.0-beta.145 → 0.20.0-beta.147

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.
@@ -1256,6 +1256,15 @@ var createInteractiveHandler = (actions) => {
1256
1256
  return { clearPrompt, dispose, showPrompt };
1257
1257
  };
1258
1258
 
1259
+ // src/cli/devSpawn.ts
1260
+ var devChildSpawnOptions = (cwd, env) => ({
1261
+ cwd,
1262
+ detached: true,
1263
+ env,
1264
+ stdio: ["ignore", "pipe", "pipe", "pipe"],
1265
+ windowsHide: process.platform === "win32"
1266
+ });
1267
+
1259
1268
  // src/utils/resolveDevPort.ts
1260
1269
  import { createServer } from "net";
1261
1270
  var isPortFree = (port, host = "localhost") => new Promise((resolve) => {
@@ -2539,34 +2548,32 @@ var dev = async (serverEntry, configPath, options = {}) => {
2539
2548
  markBoot("dev child spawn requested");
2540
2549
  const prescanForSpawn = prescan;
2541
2550
  prescan = null;
2551
+ const childEnv = {
2552
+ ...process.env,
2553
+ ...readDotenvFiles(),
2554
+ ABSOLUTE_HOST: resolvedDev.host,
2555
+ ABSOLUTE_INSTANCE_MANAGED: "1",
2556
+ ABSOLUTE_PORT: String(port),
2557
+ ABSOLUTE_SERVER_ENTRY: resolvePath(serverEntry),
2558
+ ...parentListener ? { [PARENT_LISTENER_ENV]: "1" } : {},
2559
+ ...bootTimelineChildEnv(),
2560
+ ...prescanForSpawn ? { ABSOLUTE_DEV_PRESCAN: prescanForSpawn.path } : {},
2561
+ ...options.eager ? { ABSOLUTE_DEV_EAGER: "1" } : {},
2562
+ ...process.stdout.isTTY === true ? { ABSOLUTE_DEV_TTY: "1" } : {},
2563
+ ...mobileConfig ? { ABSOLUTE_MOBILE_PREVIEW: "1" } : {},
2564
+ FORCE_COLOR: "1",
2565
+ NODE_ENV: "development",
2566
+ PORT: String(port),
2567
+ ...configPath ? { ABSOLUTE_CONFIG: configPath } : {},
2568
+ ...httpsEnabled ? { ABSOLUTE_HTTPS: "true" } : {}
2569
+ };
2542
2570
  const proc = nodeSpawn(bunExecutable, [
2543
2571
  "--no-clear-screen",
2544
2572
  ...heapSnapshotEnabled ? ["--preload", heapPreloadPath] : [],
2545
2573
  ...importCostEnabled() ? ["--preload", importCostPreload] : [],
2546
2574
  serverBootstrap
2547
2575
  ], {
2548
- cwd: process.cwd(),
2549
- detached: true,
2550
- env: {
2551
- ...process.env,
2552
- ...readDotenvFiles(),
2553
- ABSOLUTE_HOST: resolvedDev.host,
2554
- ABSOLUTE_INSTANCE_MANAGED: "1",
2555
- ABSOLUTE_PORT: String(port),
2556
- ABSOLUTE_SERVER_ENTRY: resolvePath(serverEntry),
2557
- ...parentListener ? { [PARENT_LISTENER_ENV]: "1" } : {},
2558
- ...bootTimelineChildEnv(),
2559
- ...prescanForSpawn ? { ABSOLUTE_DEV_PRESCAN: prescanForSpawn.path } : {},
2560
- ...options.eager ? { ABSOLUTE_DEV_EAGER: "1" } : {},
2561
- ...process.stdout.isTTY === true ? { ABSOLUTE_DEV_TTY: "1" } : {},
2562
- ...mobileConfig ? { ABSOLUTE_MOBILE_PREVIEW: "1" } : {},
2563
- FORCE_COLOR: "1",
2564
- NODE_ENV: "development",
2565
- PORT: String(port),
2566
- ...configPath ? { ABSOLUTE_CONFIG: configPath } : {},
2567
- ...httpsEnabled ? { ABSOLUTE_HTTPS: "true" } : {}
2568
- },
2569
- stdio: ["ignore", "pipe", "pipe", "pipe"]
2576
+ ...devChildSpawnOptions(process.cwd(), childEnv)
2570
2577
  });
2571
2578
  prescanForSpawn?.start();
2572
2579
  const [, , , handoffPipe] = proc.stdio;
package/dist/cli/index.js CHANGED
@@ -54,7 +54,7 @@ if (command === "dev") {
54
54
  }
55
55
  const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
56
56
  const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
57
- const { dev } = await import("./dev-4qz8gk8x.js");
57
+ const { dev } = await import("./dev-2s1wgybw.js");
58
58
  await dev(serverEntry, configPath, {
59
59
  androidDevice,
60
60
  eager: args.includes("--eager"),
package/dist/index.js CHANGED
@@ -37557,7 +37557,8 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37557
37557
  const { serverTiming } = await import("@elysia/server-timing");
37558
37558
  const mobileDevPlugin = await loadMobileDevPlugin(config.mobile);
37559
37559
  const mobileUpdatePlugin = await loadMobileUpdatePlugin(config.mobile, false);
37560
- const absolutejs = new Elysia12({ name: "absolutejs-runtime" }).use(requestInspector).use(absoluteRequestContext).use(serverTiming()).use(devtoolsJson(buildDir, {
37560
+ const absolutejs = new Elysia12({ name: "absolutejs-runtime" });
37561
+ absolutejs.use(requestInspector).use(absoluteRequestContext).use(serverTiming()).use(devtoolsJson(buildDir, {
37561
37562
  normalizeForWindowsContainer: config.dev?.devtools?.normalizeForWindowsContainer,
37562
37563
  projectRoot: config.dev?.devtools?.projectRoot,
37563
37564
  uuid: config.dev?.devtools?.uuid,
@@ -37748,7 +37749,8 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37748
37749
  });
37749
37750
  stepStartedAt = performance.now();
37750
37751
  await Promise.resolve().then(() => init_imageOptimizer());
37751
- const absolutejs = new Elysia12({ name: "absolutejs-runtime" }).use(absoluteRequestContext).use(mobileAssociationPlugin).use(mobileCompatibilityPlugin).use(mobileUpdatePlugin).use(assetCachePlugin).use(imageOptimizer(config.images, buildDir)).use(prerenderPlugin).use(precompressedFiles).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
37752
+ const absolutejs = new Elysia12({ name: "absolutejs-runtime" });
37753
+ absolutejs.use(absoluteRequestContext).use(mobileAssociationPlugin).use(mobileCompatibilityPlugin).use(mobileUpdatePlugin).use(assetCachePlugin).use(imageOptimizer(config.images, buildDir)).use(prerenderPlugin).use(precompressedFiles).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
37752
37754
  await withOpenApi(absolutejs, config, process.cwd(), false);
37753
37755
  await withTelemetry(absolutejs, config, process.cwd());
37754
37756
  recordStep("assemble production runtime", stepStartedAt);
@@ -37757,7 +37759,8 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
37757
37759
  }
37758
37760
  stepStartedAt = performance.now();
37759
37761
  await Promise.resolve().then(() => init_imageOptimizer());
37760
- const absolutejs = new Elysia12({ name: "absolutejs-runtime" }).use(absoluteRequestContext).use(mobileAssociationPlugin).use(mobileCompatibilityPlugin).use(mobileUpdatePlugin).use(assetCachePlugin).use(imageOptimizer(config.images, buildDir)).use(precompressedFiles).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
37762
+ const absolutejs = new Elysia12({ name: "absolutejs-runtime" });
37763
+ absolutejs.use(absoluteRequestContext).use(mobileAssociationPlugin).use(mobileCompatibilityPlugin).use(mobileUpdatePlugin).use(assetCachePlugin).use(imageOptimizer(config.images, buildDir)).use(precompressedFiles).use(staticFiles).use(generatedAssetsPlugin).use(createNotFoundPlugin());
37761
37764
  await withOpenApi(absolutejs, config, process.cwd(), false);
37762
37765
  await withTelemetry(absolutejs, config, process.cwd());
37763
37766
  recordStep("assemble production runtime", stepStartedAt);
@@ -44052,5 +44055,5 @@ export {
44052
44055
  wrapPageHandlerWithStreamingSlots
44053
44056
  };
44054
44057
 
44055
- //# debugId=8DE2424DB392B5D564756E2164756E21
44058
+ //# debugId=BDD264EE9978F08864756E2164756E21
44056
44059
  //# sourceMappingURL=index.js.map