jettypod 4.4.4 → 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 +21 -1
- package/package.json +1 -1
package/jettypod.js
CHANGED
|
@@ -86,7 +86,9 @@ function ensureJettypodGitignores() {
|
|
|
86
86
|
const entriesToIgnore = [
|
|
87
87
|
'.claude/session.md',
|
|
88
88
|
'.jettypod-work/',
|
|
89
|
-
'.jettypod-trash/'
|
|
89
|
+
'.jettypod-trash/',
|
|
90
|
+
'.jettypod/*.db-shm',
|
|
91
|
+
'.jettypod/*.db-wal'
|
|
90
92
|
];
|
|
91
93
|
|
|
92
94
|
// Add entries to .gitignore if not present
|
|
@@ -125,6 +127,24 @@ function ensureJettypodGitignores() {
|
|
|
125
127
|
} catch (e) {
|
|
126
128
|
// File not tracked or git error - that's fine
|
|
127
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
|
+
}
|
|
128
148
|
}
|
|
129
149
|
|
|
130
150
|
// CLAUDE.md generation
|