declare-cc 0.5.8 → 0.5.9
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/install.js +12 -0
- package/dist/declare-tools.cjs +1 -1
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -1514,6 +1514,18 @@ function install(isGlobal, runtime = 'claude') {
|
|
|
1514
1514
|
failures.push('VERSION');
|
|
1515
1515
|
}
|
|
1516
1516
|
|
|
1517
|
+
// Refresh update-check cache so the "update available" UI clears immediately
|
|
1518
|
+
try {
|
|
1519
|
+
const cacheDir = path.join(os.homedir(), '.claude', 'cache');
|
|
1520
|
+
fs.mkdirSync(cacheDir, { recursive: true });
|
|
1521
|
+
fs.writeFileSync(path.join(cacheDir, 'declare-update-check.json'), JSON.stringify({
|
|
1522
|
+
update_available: false,
|
|
1523
|
+
installed: pkg.version,
|
|
1524
|
+
latest: pkg.version,
|
|
1525
|
+
checked: Math.floor(Date.now() / 1000),
|
|
1526
|
+
}));
|
|
1527
|
+
} catch (e) { /* non-fatal */ }
|
|
1528
|
+
|
|
1517
1529
|
// Write package.json to force CommonJS mode for GSD scripts
|
|
1518
1530
|
// Prevents "require is not defined" errors when project has "type": "module"
|
|
1519
1531
|
// Node.js walks up looking for package.json - this stops inheritance from project
|
package/dist/declare-tools.cjs
CHANGED
package/package.json
CHANGED