@absolutejs/absolute 0.12.0 → 0.12.2

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,11 +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 { copyFileSync, mkdirSync } from "fs";
182139
- 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";
182140
182140
  import { basename as basename7, join as join8 } from "path";
182141
182141
  import { cwd, env as env2, exit } from "process";
182142
- var {$, build: bunBuild } = globalThis.Bun;
182142
+ var {$, build: bunBuild, Glob: Glob3 } = globalThis.Bun;
182143
182143
 
182144
182144
  // src/build/compileAngular.ts
182145
182145
  import { promises as fs3 } from "fs";
@@ -235091,11 +235091,11 @@ var build = async ({
235091
235091
  else if (vuePagesPath)
235092
235092
  serverRoot = vuePagesPath;
235093
235093
  await rm3(buildPath, { force: true, recursive: true });
235094
- await mkdir4(buildPath);
235094
+ mkdirSync(buildPath);
235095
235095
  if (reactIndexesPath && reactPagesPath)
235096
235096
  await generateReactIndexFiles(reactPagesPath, reactIndexesPath);
235097
235097
  if (assetsPath)
235098
- await cp(assetsPath, join8(buildPath, "assets"), {
235098
+ cpSync(assetsPath, join8(buildPath, "assets"), {
235099
235099
  force: true,
235100
235100
  recursive: true
235101
235101
  });
@@ -235200,8 +235200,8 @@ var build = async ({
235200
235200
  const manifest = generateManifest([...serverOutputs, ...clientOutputs, ...cssOutputs], buildPath);
235201
235201
  if (htmlDir && htmlPagesPath) {
235202
235202
  const outputHtmlPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmlDir), "pages");
235203
- await mkdir4(outputHtmlPages, { recursive: true });
235204
- await cp(htmlPagesPath, outputHtmlPages, {
235203
+ mkdirSync(outputHtmlPages, { recursive: true });
235204
+ cpSync(htmlPagesPath, outputHtmlPages, {
235205
235205
  force: true,
235206
235206
  recursive: true
235207
235207
  });
@@ -235209,15 +235209,21 @@ var build = async ({
235209
235209
  }
235210
235210
  if (htmxDir && htmxPagesPath) {
235211
235211
  const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmxDir), "pages");
235212
- await mkdir4(outputHtmxPages, { recursive: true });
235213
- await cp(htmxPagesPath, outputHtmxPages, {
235212
+ mkdirSync(outputHtmxPages, { recursive: true });
235213
+ cpSync(htmxPagesPath, outputHtmxPages, {
235214
235214
  force: true,
235215
235215
  recursive: true
235216
235216
  });
235217
- await updateAssetPaths(manifest, outputHtmxPages);
235218
235217
  const htmxDestDir = isSingle ? buildPath : join8(buildPath, basename7(htmxDir));
235219
235218
  mkdirSync(htmxDestDir, { recursive: true });
235220
- copyFileSync(join8(htmxDir, "htmx.min.js"), join8(htmxDestDir, "htmx.min.js"));
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
+ }
235226
+ await updateAssetPaths(manifest, outputHtmxPages);
235221
235227
  }
235222
235228
  if (!options?.preserveIntermediateFiles)
235223
235229
  await cleanup({
@@ -268673,8 +268679,8 @@ var require_select = __commonJS2({
268673
268679
  if (m[2]) {
268674
268680
  return "";
268675
268681
  }
268676
- var cp2 = parseInt(m[1], 16);
268677
- return String.fromCodePoint ? String.fromCodePoint(cp2) : String.fromCharCode(cp2);
268682
+ var cp = parseInt(m[1], 16);
268683
+ return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
268678
268684
  });
268679
268685
  } else if (rules.ident.test(str)) {
268680
268686
  return decodeid(str);
@@ -268688,8 +268694,8 @@ var require_select = __commonJS2({
268688
268694
  if (!m) {
268689
268695
  return s[1];
268690
268696
  }
268691
- var cp2 = parseInt(m[1], 16);
268692
- return String.fromCodePoint ? String.fromCodePoint(cp2) : String.fromCharCode(cp2);
268697
+ var cp = parseInt(m[1], 16);
268698
+ return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
268693
268699
  });
268694
268700
  };
268695
268701
  var indexOf2 = function() {
@@ -283334,5 +283340,5 @@ export {
283334
283340
  ANGULAR_BUILD_WARNING_SUPPRESSION
283335
283341
  };
283336
283342
 
283337
- //# debugId=07F6692386554F1464756E2164756E21
283343
+ //# debugId=F1612DA44AA8A6C264756E2164756E21
283338
283344
  //# sourceMappingURL=index.js.map