@absolutejs/absolute 0.11.0 → 0.12.0
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 +7 -3
- package/dist/index.js.map +3 -3
- package/eslint.config.mjs +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -182135,6 +182135,7 @@ 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";
|
|
182138
182139
|
import { rm as rm3, mkdir as mkdir4, cp } from "fs/promises";
|
|
182139
182140
|
import { basename as basename7, join as join8 } from "path";
|
|
182140
182141
|
import { cwd, env as env2, exit } from "process";
|
|
@@ -235131,7 +235132,7 @@ var build = async ({
|
|
|
235131
235132
|
...htmlCssEntries,
|
|
235132
235133
|
...htmxCssEntries
|
|
235133
235134
|
];
|
|
235134
|
-
if (serverEntryPoints.length === 0 && clientEntryPoints.length === 0) {
|
|
235135
|
+
if (serverEntryPoints.length === 0 && clientEntryPoints.length === 0 && htmxDir === undefined) {
|
|
235135
235136
|
console.warn("No entry points found, manifest will be empty.");
|
|
235136
235137
|
return {};
|
|
235137
235138
|
}
|
|
@@ -235207,13 +235208,16 @@ var build = async ({
|
|
|
235207
235208
|
await updateAssetPaths(manifest, outputHtmlPages);
|
|
235208
235209
|
}
|
|
235209
235210
|
if (htmxDir && htmxPagesPath) {
|
|
235210
|
-
const outputHtmxPages = join8(buildPath, basename7(htmxDir), "pages");
|
|
235211
|
+
const outputHtmxPages = isSingle ? join8(buildPath, "pages") : join8(buildPath, basename7(htmxDir), "pages");
|
|
235211
235212
|
await mkdir4(outputHtmxPages, { recursive: true });
|
|
235212
235213
|
await cp(htmxPagesPath, outputHtmxPages, {
|
|
235213
235214
|
force: true,
|
|
235214
235215
|
recursive: true
|
|
235215
235216
|
});
|
|
235216
235217
|
await updateAssetPaths(manifest, outputHtmxPages);
|
|
235218
|
+
const htmxDestDir = isSingle ? buildPath : join8(buildPath, basename7(htmxDir));
|
|
235219
|
+
mkdirSync(htmxDestDir, { recursive: true });
|
|
235220
|
+
copyFileSync(join8(htmxDir, "htmx.min.js"), join8(htmxDestDir, "htmx.min.js"));
|
|
235217
235221
|
}
|
|
235218
235222
|
if (!options?.preserveIntermediateFiles)
|
|
235219
235223
|
await cleanup({
|
|
@@ -283330,5 +283334,5 @@ export {
|
|
|
283330
283334
|
ANGULAR_BUILD_WARNING_SUPPRESSION
|
|
283331
283335
|
};
|
|
283332
283336
|
|
|
283333
|
-
//# debugId=
|
|
283337
|
+
//# debugId=07F6692386554F1464756E2164756E21
|
|
283334
283338
|
//# sourceMappingURL=index.js.map
|