create-claude-cabinet 0.7.1 → 0.7.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.
- package/lib/cli.js +4 -0
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -547,10 +547,14 @@ async function run() {
|
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
// --- Clean up files removed upstream ---
|
|
550
|
+
// Phase files are excluded from the manifest (they're user-customized),
|
|
551
|
+
// so skip them during cleanup even if they were in the old manifest.
|
|
550
552
|
if (Object.keys(existingManifest).length > 0) {
|
|
551
553
|
let totalRemoved = 0;
|
|
552
554
|
for (const oldPath of Object.keys(existingManifest)) {
|
|
553
555
|
if (!allManifest[oldPath]) {
|
|
556
|
+
// Skip phase files — they may be user-customized
|
|
557
|
+
if (/\/phases\//.test(oldPath)) continue;
|
|
554
558
|
const fullPath = path.join(projectDir, oldPath);
|
|
555
559
|
if (fs.existsSync(fullPath)) {
|
|
556
560
|
if (!flags.dryRun) fs.unlinkSync(fullPath);
|
package/package.json
CHANGED