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

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
@@ -20974,6 +20974,29 @@ ${content.slice(firstUseIdx)}`;
20974
20974
  continue;
20975
20975
  manifest[toPascal(baseName)] = artifact.path;
20976
20976
  }
20977
+ const cssByName = new Map;
20978
+ for (const artifact of cssOutputs) {
20979
+ if (extname8(artifact.path) !== ".css")
20980
+ continue;
20981
+ const fileBase = basename11(artifact.path);
20982
+ const [cssName] = fileBase.split(`.${artifact.hash}.`);
20983
+ if (cssName)
20984
+ cssByName.set(cssName, artifact);
20985
+ }
20986
+ const fsPromises = await import("fs/promises");
20987
+ await Promise.all(serverOutputs.map(async (artifact) => {
20988
+ if (extname8(artifact.path) !== ".js")
20989
+ return;
20990
+ const fileWithHash = basename11(artifact.path);
20991
+ const [pascalName] = fileWithHash.split(`.${artifact.hash}.`);
20992
+ if (!pascalName)
20993
+ return;
20994
+ const cssArtifact = cssByName.get(`${toKebab(pascalName)}-compiled`);
20995
+ if (!cssArtifact)
20996
+ return;
20997
+ const siblingCssPath = artifact.path.replace(/\.js$/, ".css");
20998
+ await fsPromises.copyFile(cssArtifact.path, siblingCssPath);
20999
+ }));
20977
21000
  for (const serverPath of emberServerPaths) {
20978
21001
  const fileBase = basename11(serverPath, ".js");
20979
21002
  manifest[toPascal(fileBase)] = serverPath;
@@ -35714,5 +35737,5 @@ export {
35714
35737
  ANGULAR_INIT_TIMEOUT_MS
35715
35738
  };
35716
35739
 
35717
- //# debugId=7A677B9818CF704764756E2164756E21
35740
+ //# debugId=0C4890D826CAFC9964756E2164756E21
35718
35741
  //# sourceMappingURL=index.js.map