@blinkk/root 3.0.4 → 3.0.5
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/{chunk-URG2INLL.js → chunk-VQPDCDKL.js} +6 -3
- package/dist/chunk-VQPDCDKL.js.map +7 -0
- package/dist/cli.js +1 -1
- package/dist/functions.js +1 -1
- package/dist/utils/jsonutils.d.ts +22 -0
- package/dist/utils/utils.d.ts +1 -0
- package/dist/utils.js +30 -0
- package/dist/utils.js.map +7 -0
- package/package.json +5 -1
- package/dist/chunk-URG2INLL.js.map +0 -7
|
@@ -753,7 +753,7 @@ async function build(rootProjectDir, options) {
|
|
|
753
753
|
const outFilePath2 = urlPath.slice(1);
|
|
754
754
|
const outPath2 = path3.join(buildDir, outFilePath2);
|
|
755
755
|
await makeDir(path3.dirname(outPath2));
|
|
756
|
-
await writeFile(outPath2, body);
|
|
756
|
+
await writeFile(outPath2, normalizeLineEndings(body));
|
|
757
757
|
printFileOutput(fileSize(outPath2), "dist/html/", outFilePath2);
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
@@ -791,7 +791,7 @@ async function build(rootProjectDir, options) {
|
|
|
791
791
|
} else if (rootConfig.minifyHtml) {
|
|
792
792
|
html = await htmlMinify(html, rootConfig.minifyHtmlOptions);
|
|
793
793
|
}
|
|
794
|
-
await writeFile(outPath, html);
|
|
794
|
+
await writeFile(outPath, normalizeLineEndings(html));
|
|
795
795
|
printFileOutput(fileSize(outPath), "dist/html/", outFilePath);
|
|
796
796
|
} catch (e) {
|
|
797
797
|
logBuildError(
|
|
@@ -892,6 +892,9 @@ function formatParams(params) {
|
|
|
892
892
|
return ` ${key}: ${value}`;
|
|
893
893
|
}).join("\n");
|
|
894
894
|
}
|
|
895
|
+
function normalizeLineEndings(str) {
|
|
896
|
+
return str.replace(/\r\n?/g, "\n");
|
|
897
|
+
}
|
|
895
898
|
|
|
896
899
|
// src/cli/codegen.ts
|
|
897
900
|
import { promises as fs3 } from "node:fs";
|
|
@@ -3529,4 +3532,4 @@ export {
|
|
|
3529
3532
|
createProdServer,
|
|
3530
3533
|
CliRunner
|
|
3531
3534
|
};
|
|
3532
|
-
//# sourceMappingURL=chunk-
|
|
3535
|
+
//# sourceMappingURL=chunk-VQPDCDKL.js.map
|