brain-dev 1.2.6 → 1.2.7
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.
|
@@ -125,7 +125,10 @@ async function run(args = [], opts = {}) {
|
|
|
125
125
|
// 9. Update .gitignore
|
|
126
126
|
updateGitignore(brainDir);
|
|
127
127
|
|
|
128
|
-
// 10.
|
|
128
|
+
// 10. Clear update notification cache (notification should disappear after update)
|
|
129
|
+
try { fs.unlinkSync(path.join(brainDir, '.update-check.json')); } catch {}
|
|
130
|
+
|
|
131
|
+
// 11. Report
|
|
129
132
|
const isUpgrade = installedVersion !== packageVersion;
|
|
130
133
|
const msg = isUpgrade
|
|
131
134
|
? `Updated brain-dev v${installedVersion} → v${packageVersion}. State preserved. Backup: brain.json.pre-update`
|