@mutmutco/cli 3.44.0 → 3.45.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/main.cjs +5 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -15432,11 +15432,15 @@ function renderDocsIndex(entries) {
|
|
|
15432
15432
|
}
|
|
15433
15433
|
return lines.join("\n") + "\n";
|
|
15434
15434
|
}
|
|
15435
|
+
function sameContent(a, b) {
|
|
15436
|
+
const normalize = (text) => text.replace(/\r\n/g, "\n");
|
|
15437
|
+
return normalize(a) === normalize(b);
|
|
15438
|
+
}
|
|
15435
15439
|
function docsIndex(deps, opts = {}) {
|
|
15436
15440
|
const entries = deps.listDocs().slice().sort().map((relPath) => extractDocMeta(relPath, deps.readDoc(relPath)));
|
|
15437
15441
|
const content = renderDocsIndex(entries);
|
|
15438
15442
|
const current = deps.readIndex();
|
|
15439
|
-
const drift = current
|
|
15443
|
+
const drift = current === null || !sameContent(current, content);
|
|
15440
15444
|
let wrote = false;
|
|
15441
15445
|
if (!opts.check && drift) {
|
|
15442
15446
|
deps.writeIndex(content);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.45.0",
|
|
4
4
|
"description": "MMI Future CLI — the org dev toolbox (board, registry, keyless secrets, release train, bootstrap, doctor) and the cross-IDE engine the plugin's session-start hook drives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|