create-claude-rails 0.3.2 → 0.3.3
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 +5 -4
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -186,11 +186,12 @@ async function run() {
|
|
|
186
186
|
if (dirState === 'existing-install') {
|
|
187
187
|
const existing = readMetadata(projectDir);
|
|
188
188
|
console.log(` Found existing installation (v${existing.version}, installed ${existing.installedAt.split('T')[0]})`);
|
|
189
|
+
console.log(' Will add new files only. Use /cor-upgrade in Claude Code to update existing files.');
|
|
189
190
|
if (!flags.yes && !flags.lean) {
|
|
190
191
|
const { proceed } = await prompts({
|
|
191
192
|
type: 'confirm',
|
|
192
193
|
name: 'proceed',
|
|
193
|
-
message: '
|
|
194
|
+
message: 'Add new files from latest version?',
|
|
194
195
|
initial: true,
|
|
195
196
|
});
|
|
196
197
|
if (!proceed) {
|
|
@@ -397,7 +398,7 @@ async function run() {
|
|
|
397
398
|
const isSkill = tmpl.startsWith('skills/') && !alwaysCopyPhases.some(p => tmpl.startsWith(p));
|
|
398
399
|
const results = await copyTemplates(srcPath, destPath, {
|
|
399
400
|
dryRun: flags.dryRun,
|
|
400
|
-
skipConflicts: flags.yes,
|
|
401
|
+
skipConflicts: flags.yes || dirState === 'existing-install',
|
|
401
402
|
skipPhases: isSkill,
|
|
402
403
|
projectRoot: projectDir,
|
|
403
404
|
});
|
|
@@ -427,8 +428,8 @@ async function run() {
|
|
|
427
428
|
continue;
|
|
428
429
|
}
|
|
429
430
|
|
|
430
|
-
if (flags.yes) {
|
|
431
|
-
// --yes: keep existing files (safe default)
|
|
431
|
+
if (flags.yes || dirState === 'existing-install') {
|
|
432
|
+
// --yes or existing install: keep existing files (safe default)
|
|
432
433
|
totalSkipped++;
|
|
433
434
|
allManifest[mPath] = incomingHash;
|
|
434
435
|
} else {
|