code-foundry 0.34.5 → 0.34.6
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/commands/sync.mjs +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.34.6](https://github.com/0xPlayerOne/code-foundry/compare/v0.34.5...v0.34.6) (2026-08-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **sync:** keep prettier ignores idempotent ([5db5307](https://github.com/0xPlayerOne/code-foundry/commit/5db53072fded27a57cca3cedf7c40527cd238507))
|
|
9
|
+
|
|
3
10
|
## [0.34.5](https://github.com/0xPlayerOne/code-foundry/compare/v0.34.4...v0.34.5) (2026-08-02)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
package/src/commands/sync.mjs
CHANGED
|
@@ -412,9 +412,12 @@ function mergeGitignore(baseline, existing) {
|
|
|
412
412
|
|
|
413
413
|
/** @param {string} baseline @param {string} existing */
|
|
414
414
|
function mergeIgnoreFile(baseline, existing) {
|
|
415
|
+
const marker = '# Repository-specific rules'
|
|
415
416
|
const baselineLines = new Set(baseline.split(/\r?\n/).map((line) => line.trim()).filter(Boolean))
|
|
416
|
-
const custom = existing.split(/\r?\n/)
|
|
417
|
-
|
|
417
|
+
const custom = existing.split(/\r?\n/)
|
|
418
|
+
.map((line) => line.trimEnd())
|
|
419
|
+
.filter((line) => line.trim() && line.trim() !== marker && !baselineLines.has(line.trim()))
|
|
420
|
+
return custom.length ? `${baseline.trimEnd()}\n\n${marker}\n${custom.join('\n')}\n` : baseline
|
|
418
421
|
}
|
|
419
422
|
|
|
420
423
|
/** @param {string} file @param {string} content */
|