@absolutejs/absolute 0.20.0-beta.146 → 0.20.0-beta.148

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.
@@ -11,6 +11,7 @@ import"./index-kye08pjx.js";
11
11
 
12
12
  // src/build/buildDepVendor.ts
13
13
  import { isBuiltin } from "module";
14
+ import { join, relative } from "path";
14
15
  var {build: bunBuild, Glob } = globalThis.Bun;
15
16
 
16
17
  // src/build/vendorEntrySource.ts
@@ -83,7 +84,7 @@ var scanDirFiles = async (dir) => {
83
84
  const glob = new Glob("**/*.{ts,tsx,js,jsx}");
84
85
  try {
85
86
  const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
86
- return all.filter((file) => !isSkippedFile(file));
87
+ return all.filter((file) => !isSkippedFile(`/${relative(dir, file).replaceAll("\\", "/")}`));
87
88
  } catch {
88
89
  return empty;
89
90
  }
@@ -775,7 +775,7 @@ var serializeDependencies = (graph) => {
775
775
  return dependencies;
776
776
  };
777
777
  var computePayload = async (config, vendorSourceDirs) => {
778
- const { computeDepVendorPaths } = await import("./buildDepVendor-g49s8rr1.js");
778
+ const { computeDepVendorPaths } = await import("./buildDepVendor-29d8v9cx.js");
779
779
  const vendors = computeDepVendorPaths(vendorSourceDirs);
780
780
  const graph = {
781
781
  dependencies: new Map,
@@ -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-b9d4vnk0.js");
58
58
  await dev(serverEntry, configPath, {
59
59
  androidDevice,
60
60
  eager: args.includes("--eager"),