@absolutejs/absolute 0.11.1 → 0.12.1

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
@@ -182135,10 +182135,11 @@ var DEFAULT_CHUNK_SIZE = 16384;
182135
182135
  var BUN_BUILD_WARNING_SUPPRESSION = "wildcard sideEffects are not supported yet";
182136
182136
  var ANGULAR_BUILD_WARNING_SUPPRESSION = "@angular/common/package.json";
182137
182137
  // src/core/build.ts
182138
- import { rm as rm3, mkdir as mkdir4, cp } from "fs/promises";
182138
+ import { copyFileSync, cpSync, mkdirSync } from "fs";
182139
+ import { rm as rm3 } from "fs/promises";
182139
182140
  import { basename as basename7, join as join8 } from "path";
182140
182141
  import { cwd, env as env2, exit } from "process";
182141
- var {$, build: bunBuild } = globalThis.Bun;
182142
+ var {$, build: bunBuild, Glob: Glob3 } = globalThis.Bun;
182142
182143
 
182143
182144
  // src/build/compileAngular.ts
182144
182145
  import { promises as fs3 } from "fs";
@@ -235090,11 +235091,11 @@ var build = async ({
235090
235091
  else if (vuePagesPath)
235091
235092
  serverRoot = vuePagesPath;
235092
235093
  await rm3(buildPath, { force: true, recursive: true });
235093
- await mkdir4(buildPath);
235094
+ mkdirSync(buildPath);
235094
235095
  if (reactIndexesPath && reactPagesPath)
235095
235096
  await generateReactIndexFiles(reactPagesPath, reactIndexesPath);
235096
235097
  if (assetsPath)
235097
- await cp(assetsPath, join8(buildPath, "assets"), {
235098
+ cpSync(assetsPath, join8(buildPath, "assets"), {
235098
235099
  force: true,
235099
235100
  recursive: true
235100
235101
  });
@@ -235199,8 +235200,8 @@ var build = async ({
235199
235200
  const manifest = generateManifest([...serverOutputs, ...clientOutputs, ...cssOutputs], buildPath);
235200
235201
  if (htmlDir && htmlPagesPath) {
235201
235202
  const outputHtmlPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmlDir), "pages");
235202
- await mkdir4(outputHtmlPages, { recursive: true });
235203
- await cp(htmlPagesPath, outputHtmlPages, {
235203
+ mkdirSync(outputHtmlPages, { recursive: true });
235204
+ cpSync(htmlPagesPath, outputHtmlPages, {
235204
235205
  force: true,
235205
235206
  recursive: true
235206
235207
  });
@@ -235208,12 +235209,20 @@ var build = async ({
235208
235209
  }
235209
235210
  if (htmxDir && htmxPagesPath) {
235210
235211
  const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmxDir), "pages");
235211
- await mkdir4(outputHtmxPages, { recursive: true });
235212
- await cp(htmxPagesPath, outputHtmxPages, {
235212
+ mkdirSync(outputHtmxPages, { recursive: true });
235213
+ cpSync(htmxPagesPath, outputHtmxPages, {
235213
235214
  force: true,
235214
235215
  recursive: true
235215
235216
  });
235216
- await updateAssetPaths(manifest, outputHtmxPages);
235217
+ const htmxDestDir = isSingle ? buildPath : join8(buildPath, basename7(htmxDir));
235218
+ mkdirSync(htmxDestDir, { recursive: true });
235219
+ const glob = new Glob3("htmx*.min.js");
235220
+ for (const relativePath of glob.scanSync({ cwd: htmxDir })) {
235221
+ const src = join8(htmxDir, relativePath);
235222
+ const dest = join8(htmxDestDir, "htmx.min.js");
235223
+ copyFileSync(src, dest);
235224
+ break;
235225
+ }
235217
235226
  }
235218
235227
  if (!options?.preserveIntermediateFiles)
235219
235228
  await cleanup({
@@ -268669,8 +268678,8 @@ var require_select = __commonJS2({
268669
268678
  if (m[2]) {
268670
268679
  return "";
268671
268680
  }
268672
- var cp2 = parseInt(m[1], 16);
268673
- return String.fromCodePoint ? String.fromCodePoint(cp2) : String.fromCharCode(cp2);
268681
+ var cp = parseInt(m[1], 16);
268682
+ return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
268674
268683
  });
268675
268684
  } else if (rules.ident.test(str)) {
268676
268685
  return decodeid(str);
@@ -268684,8 +268693,8 @@ var require_select = __commonJS2({
268684
268693
  if (!m) {
268685
268694
  return s[1];
268686
268695
  }
268687
- var cp2 = parseInt(m[1], 16);
268688
- return String.fromCodePoint ? String.fromCodePoint(cp2) : String.fromCharCode(cp2);
268696
+ var cp = parseInt(m[1], 16);
268697
+ return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
268689
268698
  });
268690
268699
  };
268691
268700
  var indexOf2 = function() {
@@ -283330,5 +283339,5 @@ export {
283330
283339
  ANGULAR_BUILD_WARNING_SUPPRESSION
283331
283340
  };
283332
283341
 
283333
- //# debugId=927665B1B47632A064756E2164756E21
283342
+ //# debugId=2FB0C201B5C4611F64756E2164756E21
283334
283343
  //# sourceMappingURL=index.js.map