cc-orchestrator 0.2.2 → 0.2.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/index.js +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -120,7 +120,9 @@ async function install(installDir) {
|
|
|
120
120
|
console.log('─'.repeat(50));
|
|
121
121
|
if (fs.existsSync(path.join(installDir, '.git'))) {
|
|
122
122
|
console.log('\n[1/3] Fetching latest code...\n');
|
|
123
|
-
|
|
123
|
+
// Use fetch + reset to handle local changes (e.g., package-lock.json from npm install)
|
|
124
|
+
exec('git fetch origin main', { cwd: installDir });
|
|
125
|
+
exec('git reset --hard origin/main', { cwd: installDir });
|
|
124
126
|
} else {
|
|
125
127
|
console.log('\n[1/3] Cloning repository...\n');
|
|
126
128
|
if (fs.existsSync(installDir)) {
|