@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/build.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 = resolve20(process.cwd(), ".absolutejs");
204360
- const tmpConfig = resolve20(absDir, "build-config.json");
204361
- const tmpScript = resolve20(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
  }
@@ -204931,5 +204924,5 @@ export {
204931
204924
  build
204932
204925
  };
204933
204926
 
204934
- //# debugId=CFE9B3BDE37B859064756E2164756E21
204927
+ //# debugId=AC996619E7AE190164756E2164756E21
204935
204928
  //# sourceMappingURL=build.js.map