@absolutejs/absolute 0.19.0-beta.944 → 0.19.0-beta.946

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ij5VAt/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-ij5VAt/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-ij5VAt/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -18952,6 +18952,7 @@ var resolveBuildPaths = (config) => {
18952
18952
  emberDir: optional(config.emberDirectory),
18953
18953
  htmlDir: optional(config.htmlDirectory),
18954
18954
  htmxDir: optional(config.htmxDirectory),
18955
+ publicDir: optional(config.publicDirectory),
18955
18956
  reactDir: optional(config.reactDirectory),
18956
18957
  stylesDir: optional(typeof config.stylesConfig === "string" ? config.stylesConfig : config.stylesConfig?.path),
18957
18958
  svelteDir: optional(config.svelteDirectory),
@@ -21228,6 +21229,12 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21228
21229
  const { cssChanged } = await incrementalTailwindBuild(config.tailwind, state.resolvedPaths.buildDir, files, getStyleTransformConfig(config));
21229
21230
  if (!cssChanged)
21230
21231
  return;
21232
+ try {
21233
+ const outputPath = resolve37(state.resolvedPaths.buildDir, config.tailwind.output);
21234
+ const bytes = await Bun.file(outputPath).bytes();
21235
+ const webPath = `/${config.tailwind.output.replace(/^\/+/, "")}`;
21236
+ state.assetStore.set(webPath, bytes);
21237
+ } catch {}
21231
21238
  broadcastToClients(state, {
21232
21239
  data: { framework: "tailwind", manifest: state.manifest },
21233
21240
  message: "Tailwind utilities recompiled",
@@ -21486,6 +21493,29 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
21486
21493
  if (!hasFileChanged(filePath, currentHash, state.fileHashes)) {
21487
21494
  return;
21488
21495
  }
21496
+ const publicDir = state.resolvedPaths.publicDir;
21497
+ if (publicDir && resolve37(filePath).replace(/\\/g, "/").startsWith(publicDir + "/")) {
21498
+ try {
21499
+ const absSource = resolve37(filePath);
21500
+ const relFromPublic = absSource.replace(/\\/g, "/").slice(publicDir.length + 1);
21501
+ const buildDir = state.resolvedPaths.buildDir;
21502
+ const destPath = resolve37(buildDir, relFromPublic);
21503
+ const { mkdir: mkdir7, copyFile, readFile: readFile6 } = await import("fs/promises");
21504
+ const { dirname: dirname22 } = await import("path");
21505
+ await mkdir7(dirname22(destPath), { recursive: true });
21506
+ await copyFile(absSource, destPath);
21507
+ const bytes = await readFile6(destPath);
21508
+ state.assetStore.set(`/${relFromPublic}`, new Uint8Array(bytes));
21509
+ state.fileHashes.set(absSource, currentHash);
21510
+ logHmrUpdate(relative16(process.cwd(), filePath));
21511
+ broadcastToClients(state, {
21512
+ data: { framework: "public", manifest: state.manifest },
21513
+ message: "Public asset updated",
21514
+ type: "style-update"
21515
+ });
21516
+ } catch {}
21517
+ return;
21518
+ }
21489
21519
  if (framework === "unknown") {
21490
21520
  invalidate(resolve37(filePath));
21491
21521
  const relPath = relative16(process.cwd(), filePath);
@@ -23834,5 +23864,5 @@ export {
23834
23864
  build
23835
23865
  };
23836
23866
 
23837
- //# debugId=DACC30B88A8A516D64756E2164756E21
23867
+ //# debugId=DFDC175610BB2AC564756E2164756E21
23838
23868
  //# sourceMappingURL=build.js.map