@ekkos/cli 1.4.1 → 1.4.2
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.
|
@@ -1070,6 +1070,12 @@ class LocalLivingDocsManager {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
const result = patched + body;
|
|
1072
1072
|
const finalResult = lineEnding === '\r\n' ? result.replace(/\r\n/g, '\n').replace(/\n/g, '\r\n') : result;
|
|
1073
|
+
// Skip write if the only change is last_compiled_at timestamp — prevents git noise
|
|
1074
|
+
// Compare by stripping the timestamp lines from both old and new
|
|
1075
|
+
const stripTimestamps = (s) => s.replace(/^last_compiled_at: .+$/m, '').replace(/^compiled_timezone: .+$/m, '');
|
|
1076
|
+
if (stripTimestamps(existing) === stripTimestamps(finalResult)) {
|
|
1077
|
+
return; // Nothing meaningful changed — don't touch the file
|
|
1078
|
+
}
|
|
1073
1079
|
// Atomic write
|
|
1074
1080
|
const tmpPath = (0, path_1.join)((0, path_1.dirname)(contextPath), `.ekkOS_CONTEXT.md.${process.pid}.tmp`);
|
|
1075
1081
|
(0, fs_1.writeFileSync)(tmpPath, finalResult, 'utf-8');
|
package/package.json
CHANGED