jettypod 4.4.25 → 4.4.26
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 +20 -0
- package/package.json +1 -1
package/jettypod.js
CHANGED
|
@@ -146,6 +146,26 @@ function ensureJettypodGitignores() {
|
|
|
146
146
|
// File not tracked or git error - that's fine
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
|
|
150
|
+
// Untrack .jettypod/ directory if it's currently tracked
|
|
151
|
+
// This is critical for worktrees - tracked .jettypod causes "deleted" file issues
|
|
152
|
+
try {
|
|
153
|
+
const { execSync } = require('child_process');
|
|
154
|
+
// Check if any files in .jettypod are tracked
|
|
155
|
+
const trackedFiles = execSync('git ls-files .jettypod/', {
|
|
156
|
+
encoding: 'utf-8',
|
|
157
|
+
stdio: ['pipe', 'pipe', 'pipe']
|
|
158
|
+
}).trim();
|
|
159
|
+
|
|
160
|
+
if (trackedFiles) {
|
|
161
|
+
// Files are tracked - untrack the entire directory
|
|
162
|
+
execSync('git rm -r --cached .jettypod/', { stdio: 'pipe' });
|
|
163
|
+
console.log('📝 Untracked .jettypod/ directory (now gitignored)');
|
|
164
|
+
console.log(' Run: git commit -m "Stop tracking .jettypod"');
|
|
165
|
+
}
|
|
166
|
+
} catch (e) {
|
|
167
|
+
// Directory not tracked or git error - that's fine
|
|
168
|
+
}
|
|
149
169
|
}
|
|
150
170
|
|
|
151
171
|
// CLAUDE.md generation
|