@absolutejs/absolute 0.19.0-beta.1000 → 0.19.0-beta.1001

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
@@ -20748,6 +20748,29 @@ ${content.slice(firstUseIdx)}`;
20748
20748
  continue;
20749
20749
  manifest[toPascal(baseName)] = artifact.path;
20750
20750
  }
20751
+ const cssByName = new Map;
20752
+ for (const artifact of cssOutputs) {
20753
+ if (extname8(artifact.path) !== ".css")
20754
+ continue;
20755
+ const fileBase = basename10(artifact.path);
20756
+ const [cssName] = fileBase.split(`.${artifact.hash}.`);
20757
+ if (cssName)
20758
+ cssByName.set(cssName, artifact);
20759
+ }
20760
+ const fsPromises = await import("fs/promises");
20761
+ await Promise.all(serverOutputs.map(async (artifact) => {
20762
+ if (extname8(artifact.path) !== ".js")
20763
+ return;
20764
+ const fileWithHash = basename10(artifact.path);
20765
+ const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
20766
+ if (!pascalName)
20767
+ return;
20768
+ const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
20769
+ if (!cssArtifact)
20770
+ return;
20771
+ const siblingCssPath = artifact.path.replace(/\.js$/, ".css");
20772
+ await fsPromises.copyFile(cssArtifact.path, siblingCssPath);
20773
+ }));
20751
20774
  for (const serverPath of emberServerPaths) {
20752
20775
  const fileBase = basename10(serverPath, ".js");
20753
20776
  manifest[toPascal(fileBase)] = serverPath;
@@ -27056,5 +27079,5 @@ export {
27056
27079
  build
27057
27080
  };
27058
27081
 
27059
- //# debugId=5DDEAC0EC37CD18664756E2164756E21
27082
+ //# debugId=174676E01B1E5D0164756E2164756E21
27060
27083
  //# sourceMappingURL=build.js.map