jettypod 4.4.5 → 4.4.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/jettypod.js +18 -0
- package/package.json +1 -1
package/jettypod.js
CHANGED
|
@@ -127,6 +127,24 @@ function ensureJettypodGitignores() {
|
|
|
127
127
|
} catch (e) {
|
|
128
128
|
// File not tracked or git error - that's fine
|
|
129
129
|
}
|
|
130
|
+
|
|
131
|
+
// Untrack SQLite WAL files if they're currently tracked
|
|
132
|
+
const walFiles = ['.jettypod/work.db-shm', '.jettypod/work.db-wal'];
|
|
133
|
+
for (const walFile of walFiles) {
|
|
134
|
+
try {
|
|
135
|
+
const { execSync } = require('child_process');
|
|
136
|
+
execSync(`git ls-files --error-unmatch ${walFile} 2>/dev/null`, {
|
|
137
|
+
encoding: 'utf-8',
|
|
138
|
+
stdio: ['pipe', 'pipe', 'pipe']
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// If we get here, file is tracked - untrack it
|
|
142
|
+
execSync(`git rm --cached ${walFile}`, { stdio: 'pipe' });
|
|
143
|
+
console.log(`📝 Untracked ${walFile} (now gitignored)`);
|
|
144
|
+
} catch (e) {
|
|
145
|
+
// File not tracked or git error - that's fine
|
|
146
|
+
}
|
|
147
|
+
}
|
|
130
148
|
}
|
|
131
149
|
|
|
132
150
|
// CLAUDE.md generation
|