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

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/index.js CHANGED
@@ -204356,21 +204356,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204356
204356
  };
204357
204357
  let manifest;
204358
204358
  if (hasNonComponentFiles && subprocessConfig) {
204359
- const absDir = resolve21(process.cwd(), ".absolutejs");
204360
- const tmpConfig = resolve21(absDir, "build-config.json");
204361
- const tmpScript = resolve21(absDir, "fresh-build.ts");
204362
- const { mkdirSync: mkdirSync9, writeFileSync: writeFileSync5 } = await import("fs");
204363
- mkdirSync9(absDir, { recursive: true });
204364
- writeFileSync5(tmpConfig, JSON.stringify(subprocessConfig));
204365
- const escapedConfig = tmpConfig.replace(/\\/g, "\\\\");
204366
- writeFileSync5(tmpScript, [
204367
- 'import { build } from "@absolutejs/absolute/build";',
204368
- `const config = JSON.parse(await Bun.file("${escapedConfig}").text());`,
204369
- "const manifest = await build(config);",
204370
- 'console.log("__MANIFEST__" + JSON.stringify(manifest));'
204371
- ].join(`
204372
- `));
204373
- const proc = Bun.spawn(["bun", "run", tmpScript], {
204359
+ 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
+ ], {
204374
204366
  cwd: process.cwd(),
204375
204367
  stderr: "pipe",
204376
204368
  stdout: "pipe"
@@ -204426,7 +204418,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204426
204418
  if (filesToRebuild && filesToRebuild.length > 0 && !wasSubprocess) {
204427
204419
  await handleFullBuildHMR(state, config, affectedFrameworks, filesToRebuild, manifest, duration);
204428
204420
  }
204429
- broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
204421
+ if (!wasSubprocess)
204422
+ broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
204430
204423
  if (affectedFrameworks.includes("angular")) {
204431
204424
  invalidateAngularSsrCache();
204432
204425
  }
@@ -205336,5 +205329,5 @@ export {
205336
205329
  ANGULAR_INIT_TIMEOUT_MS
205337
205330
  };
205338
205331
 
205339
- //# debugId=CC2733F54B67DF6C64756E2164756E21
205332
+ //# debugId=0765327BDBD9976664756E2164756E21
205340
205333
  //# sourceMappingURL=index.js.map