@su-record/vibe 1.2.4 → 1.2.5
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/bin/vibe +4 -7
- package/package.json +1 -1
package/bin/vibe
CHANGED
|
@@ -1091,13 +1091,10 @@ async function update() {
|
|
|
1091
1091
|
// 기존 설정에 hooks 병합
|
|
1092
1092
|
const existingSettings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'));
|
|
1093
1093
|
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
} else {
|
|
1099
|
-
log(' ℹ️ Hooks 설정 이미 존재\n');
|
|
1100
|
-
}
|
|
1094
|
+
// 항상 최신 hooks로 업데이트 (기존 hooks 덮어쓰기)
|
|
1095
|
+
existingSettings.hooks = vibeHooks.hooks;
|
|
1096
|
+
fs.writeFileSync(settingsPath, JSON.stringify(existingSettings, null, 2));
|
|
1097
|
+
log(' ✅ Hooks 설정 업데이트 완료\n');
|
|
1101
1098
|
} else {
|
|
1102
1099
|
// 새로 생성
|
|
1103
1100
|
fs.copyFileSync(hooksTemplate, settingsPath);
|