ropilot 0.1.21 → 0.1.22
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/setup.js +5 -5
- package/package.json +1 -1
package/lib/setup.js
CHANGED
|
@@ -348,12 +348,12 @@ function setupProjectPrompts(pkg) {
|
|
|
348
348
|
if (existsSync(fullPath)) {
|
|
349
349
|
console.log(` Exists: ${fullPath}`);
|
|
350
350
|
|
|
351
|
-
// For CLAUDE.
|
|
352
|
-
if (fullPath
|
|
351
|
+
// For CLAUDE.md, append @import line if not already present
|
|
352
|
+
if (fullPath === 'CLAUDE.md') {
|
|
353
353
|
const existing = readFileSync(fullPath, 'utf-8');
|
|
354
|
-
if (!existing.includes('
|
|
355
|
-
writeFileSync(fullPath, existing + '\n\n'
|
|
356
|
-
console.log(` Updated: ${fullPath} (added
|
|
354
|
+
if (!existing.includes('@import ROPILOT.md')) {
|
|
355
|
+
writeFileSync(fullPath, existing.trimEnd() + '\n\n@import ROPILOT.md\n');
|
|
356
|
+
console.log(` Updated: ${fullPath} (added @import ROPILOT.md)`);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
} else {
|