SuperClaude/bin/update.js
NomenAK 6afa3b0f9c 🚀 Prepare for dual PyPI/NPM release v4.0
- Fix version consistency (PyPI: 4.0.0, NPM: 4.0.3)
- Update license format to PEP 639 compliance
- Restore NPM package components (bin/ and package.json)
- Fix NPM package name to @superclaude-org/superclaude
- Add comprehensive RELEASE_INSTRUCTIONS.md
- Update .gitignore to include NPM files
- Ready for production release on both PyPI and NPM

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 20:39:46 +02:00

18 lines
504 B
JavaScript

#!/usr/bin/env node
const { run, detectPip } = require("./checkEnv");
let pipCmd = detectPip();
if (!pipCmd) {
console.error("❌ pip not found, cannot update.");
process.exit(1);
}
console.log("🔄 Updating SuperClaude from PyPI...");
const result = run(pipCmd, ["install", "--upgrade", "SuperClaude"], { stdio: "inherit" });
if (result.status !== 0) {
console.error("❌ Update failed.");
process.exit(1);
}
console.log("✅ SuperClaude updated successfully!");