replit-tools 1.0.0 → 1.0.1
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/index.js +14 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -107,6 +107,20 @@ if (fs.existsSync(replitPath)) {
|
|
|
107
107
|
fs.writeFileSync(replitPath, '# Claude persistence\n' + onBootLine + '\n');
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
// Update .gitignore (only essential sensitive dirs)
|
|
111
|
+
console.log('📝 Updating .gitignore...');
|
|
112
|
+
const gitignorePath = path.join(WORKSPACE, '.gitignore');
|
|
113
|
+
const gitignoreEntries = '\n# Claude/Codex credentials (added by replit-tools)\n.claude-persistent/\n.codex-persistent/\n';
|
|
114
|
+
|
|
115
|
+
if (fs.existsSync(gitignorePath)) {
|
|
116
|
+
let content = fs.readFileSync(gitignorePath, 'utf8');
|
|
117
|
+
if (!content.includes('.claude-persistent')) {
|
|
118
|
+
fs.writeFileSync(gitignorePath, content + gitignoreEntries);
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
fs.writeFileSync(gitignorePath, gitignoreEntries.trim() + '\n');
|
|
122
|
+
}
|
|
123
|
+
|
|
110
124
|
console.log('');
|
|
111
125
|
console.log('✅ Installation complete!');
|
|
112
126
|
console.log('');
|