@absolutejs/absolute 0.19.0-beta.87 → 0.19.0-beta.89

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.
@@ -234,7 +234,8 @@
234
234
  "Bash(./scripts/use-patched-bun.sh echo:*)",
235
235
  "Read(//home/alexkahn/alex/bun-transpiler-patch/build/release/**)",
236
236
  "Bash(~/alex/bun-transpiler-patch/build/release/bun --version)",
237
- "Bash(lsof -ti:3000)"
237
+ "Bash(lsof -ti:3000)",
238
+ "Bash(sort -t' ' -k2 -h -r)"
238
239
  ]
239
240
  }
240
241
  }
package/dist/build.js CHANGED
@@ -203022,7 +203022,7 @@ var init_simpleHTMXHMR = () => {};
203022
203022
  // src/dev/rebuildTrigger.ts
203023
203023
  import { existsSync as existsSync14 } from "fs";
203024
203024
  import { rm as rm8 } from "fs/promises";
203025
- import { basename as basename8, relative as relative9, resolve as resolve20 } from "path";
203025
+ import { basename as basename8, dirname as dirname8, relative as relative9, resolve as resolve20 } from "path";
203026
203026
  var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseErrorLocationFromMessage = (msg) => {
203027
203027
  const pathLineCol = msg.match(/^([^\s:]+):(\d+)(?::(\d+))?/);
203028
203028
  if (pathLineCol) {
@@ -204356,13 +204356,10 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204356
204356
  };
204357
204357
  let manifest;
204358
204358
  if (hasNonComponentFiles && subprocessConfig) {
204359
+ const pkgDir = dirname8(dirname8(new URL(import.meta.url).pathname));
204360
+ const workerPath = resolve20(pkgDir, "freshBuildWorker.js");
204359
204361
  const configJson = JSON.stringify(subprocessConfig);
204360
- const proc = Bun.spawn([
204361
- "bun",
204362
- "-e",
204363
- 'import{build}from"@absolutejs/absolute/build";const m=await build(JSON.parse(process.argv[1]));console.log("__MANIFEST__"+JSON.stringify(m))',
204364
- configJson
204365
- ], {
204362
+ const proc = Bun.spawn(["bun", "run", workerPath, configJson], {
204366
204363
  cwd: process.cwd(),
204367
204364
  stderr: "pipe",
204368
204365
  stdout: "pipe"
@@ -204394,10 +204391,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204394
204391
  if (wasSubprocess) {
204395
204392
  const dataFile = (filesToRebuild ?? []).find((f) => f.endsWith(".ts") && !f.endsWith(".d.ts"));
204396
204393
  if (dataFile) {
204397
- state.lastHmrPath = relative9(process.cwd(), dataFile).replace(/\\/g, "/");
204398
- state.lastHmrFramework = "react";
204399
- logHmrUpdate(state.lastHmrPath, "react", duration);
204394
+ const path = relative9(process.cwd(), dataFile).replace(/\\/g, "/");
204395
+ logHmrUpdate(path, "react", duration);
204400
204396
  }
204397
+ state.lastHmrPath = undefined;
204398
+ state.lastHmrFramework = undefined;
204401
204399
  }
204402
204400
  sendTelemetryEvent("hmr:rebuild-complete", {
204403
204401
  durationMs: duration,
@@ -204924,5 +204922,5 @@ export {
204924
204922
  build
204925
204923
  };
204926
204924
 
204927
- //# debugId=AC996619E7AE190164756E2164756E21
204925
+ //# debugId=6B0796E44E22D6A764756E2164756E21
204928
204926
  //# sourceMappingURL=build.js.map