@absolutejs/absolute 0.12.0 → 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 +21 -16
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
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
|
|
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
|
-
|
|
235094
|
+
mkdirSync(buildPath);
|
|
235095
235095
|
if (reactIndexesPath && reactPagesPath)
|
|
235096
235096
|
await generateReactIndexFiles(reactPagesPath, reactIndexesPath);
|
|
235097
235097
|
if (assetsPath)
|
|
235098
|
-
|
|
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
|
-
|
|
235204
|
-
|
|
235203
|
+
mkdirSync(outputHtmlPages, { recursive: true });
|
|
235204
|
+
cpSync(htmlPagesPath, outputHtmlPages, {
|
|
235205
235205
|
force: true,
|
|
235206
235206
|
recursive: true
|
|
235207
235207
|
});
|
|
@@ -235209,15 +235209,20 @@ var build = async ({
|
|
|
235209
235209
|
}
|
|
235210
235210
|
if (htmxDir && htmxPagesPath) {
|
|
235211
235211
|
const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmxDir), "pages");
|
|
235212
|
-
|
|
235213
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
235221
235226
|
}
|
|
235222
235227
|
if (!options?.preserveIntermediateFiles)
|
|
235223
235228
|
await cleanup({
|
|
@@ -268673,8 +268678,8 @@ var require_select = __commonJS2({
|
|
|
268673
268678
|
if (m[2]) {
|
|
268674
268679
|
return "";
|
|
268675
268680
|
}
|
|
268676
|
-
var
|
|
268677
|
-
return String.fromCodePoint ? String.fromCodePoint(
|
|
268681
|
+
var cp = parseInt(m[1], 16);
|
|
268682
|
+
return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
|
|
268678
268683
|
});
|
|
268679
268684
|
} else if (rules.ident.test(str)) {
|
|
268680
268685
|
return decodeid(str);
|
|
@@ -268688,8 +268693,8 @@ var require_select = __commonJS2({
|
|
|
268688
268693
|
if (!m) {
|
|
268689
268694
|
return s[1];
|
|
268690
268695
|
}
|
|
268691
|
-
var
|
|
268692
|
-
return String.fromCodePoint ? String.fromCodePoint(
|
|
268696
|
+
var cp = parseInt(m[1], 16);
|
|
268697
|
+
return String.fromCodePoint ? String.fromCodePoint(cp) : String.fromCharCode(cp);
|
|
268693
268698
|
});
|
|
268694
268699
|
};
|
|
268695
268700
|
var indexOf2 = function() {
|
|
@@ -283334,5 +283339,5 @@ export {
|
|
|
283334
283339
|
ANGULAR_BUILD_WARNING_SUPPRESSION
|
|
283335
283340
|
};
|
|
283336
283341
|
|
|
283337
|
-
//# debugId=
|
|
283342
|
+
//# debugId=2FB0C201B5C4611F64756E2164756E21
|
|
283338
283343
|
//# sourceMappingURL=index.js.map
|