create-claude-rails 0.3.2 → 0.3.4

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 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: 'Update existing installation?',
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-rails",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Claude on Rails — opinionated process scaffolding for Claude Code projects",
5
5
  "bin": {
6
6
  "create-claude-rails": "bin/create-claude-rails.js"
@@ -68,5 +68,7 @@ With user confirmation:
68
68
 
69
69
  ### 5. Post-Publish
70
70
 
71
+ - Re-run the lean install (`node bin/create-claude-rails.js --lean`) to
72
+ update the local dogfood copy with the just-published templates
71
73
  - Update `system-status.md` if it exists
72
74
  - Report the published version and npm URL