@koda-sl/baker-cli 0.290.1 → 0.290.3
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/README.md +2 -0
- package/dist/{chunk-V7BIRLPU.js → chunk-NNQDWCFG.js} +57 -11
- package/dist/chunk-NNQDWCFG.js.map +1 -0
- package/dist/cli.js +19 -5
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-V7BIRLPU.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
ulid,
|
|
59
59
|
validateCanvasDeep,
|
|
60
60
|
ytDlpBlockSignal
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-NNQDWCFG.js";
|
|
62
62
|
import {
|
|
63
63
|
csvOrJson,
|
|
64
64
|
daysAgoIso,
|
|
@@ -48982,6 +48982,20 @@ function blankAstroFrontmatter(text2) {
|
|
|
48982
48982
|
}
|
|
48983
48983
|
return kept.join("") + text2.slice(cut);
|
|
48984
48984
|
}
|
|
48985
|
+
function blankUnrenderedSource(text2) {
|
|
48986
|
+
return blankTemplateComments(blankAstroFrontmatter(text2));
|
|
48987
|
+
}
|
|
48988
|
+
function blankTemplateComments(text2) {
|
|
48989
|
+
const out = text2.split("");
|
|
48990
|
+
const pattern = /\{\s*\/\*[\s\S]*?\*\/\s*\}|<!--[\s\S]*?-->/g;
|
|
48991
|
+
for (const m of text2.matchAll(pattern)) {
|
|
48992
|
+
const start = m.index ?? 0;
|
|
48993
|
+
for (let i = start; i < start + m[0].length && i < out.length; i++) {
|
|
48994
|
+
if (out[i] !== "\n") out[i] = " ";
|
|
48995
|
+
}
|
|
48996
|
+
}
|
|
48997
|
+
return out.join("");
|
|
48998
|
+
}
|
|
48985
48999
|
function frontmatterLength(text2) {
|
|
48986
49000
|
if (!text2.startsWith("---")) return 0;
|
|
48987
49001
|
const lines = text2.split("\n");
|
|
@@ -49355,7 +49369,7 @@ function distinctCompetitorNames(competitors) {
|
|
|
49355
49369
|
return [...byFold.values()];
|
|
49356
49370
|
}
|
|
49357
49371
|
function mentionsInSource(source, names) {
|
|
49358
|
-
const text2 =
|
|
49372
|
+
const text2 = blankUnrenderedSource(source.text);
|
|
49359
49373
|
const visible = blankHtmlKeepingOffsets(text2);
|
|
49360
49374
|
const tables = tableRanges(text2);
|
|
49361
49375
|
const out = [];
|
|
@@ -49395,7 +49409,7 @@ function escapeRegExp(value) {
|
|
|
49395
49409
|
}
|
|
49396
49410
|
function detectSource(source) {
|
|
49397
49411
|
const file = source.path;
|
|
49398
|
-
const text2 =
|
|
49412
|
+
const text2 = blankUnrenderedSource(source.text);
|
|
49399
49413
|
const findings = [];
|
|
49400
49414
|
const lines = text2.split("\n");
|
|
49401
49415
|
for (const matcher of LINE_MATCHERS) {
|
|
@@ -49413,7 +49427,7 @@ function detectSource(source) {
|
|
|
49413
49427
|
}
|
|
49414
49428
|
function detectPage(sources) {
|
|
49415
49429
|
if (sources.length === 0) return [];
|
|
49416
|
-
const combined = sources.map((s) =>
|
|
49430
|
+
const combined = sources.map((s) => blankUnrenderedSource(s.text)).join("\n");
|
|
49417
49431
|
const pageFile = sources.find((s) => s.path === "index.astro" || s.path.endsWith("/index.astro"))?.path ?? sources[0]?.path ?? "index.astro";
|
|
49418
49432
|
const findings = [];
|
|
49419
49433
|
for (const analyzer of ANALYZERS) {
|
|
@@ -49493,7 +49507,7 @@ function describeCounts(findings) {
|
|
|
49493
49507
|
// src/commands/landing/snapshot.ts
|
|
49494
49508
|
import { mkdir as mkdir9, rename as rename2, writeFile as writeFile13 } from "fs/promises";
|
|
49495
49509
|
import path31 from "path";
|
|
49496
|
-
var CRITIC_VERSION = "
|
|
49510
|
+
var CRITIC_VERSION = "4";
|
|
49497
49511
|
function critiqueCacheDir(projectRoot) {
|
|
49498
49512
|
return path31.join(projectRoot, ".cache", "landing-critique");
|
|
49499
49513
|
}
|