UNPKG

@zemerik/macbrew

Version:

🚀 Advanced terminal emulator built in Rust with Python integration - A comprehensive command-line experience

34 lines (29 loc) 1.04 kB
#!/usr/bin/env node /** * JavaScript wrapper for the TypeScript uninstall script * This ensures compatibility and calls the compiled TypeScript version */ const { spawn } = require('child_process'); const path = require('path'); function runTypeScriptUninstall() { const scriptPath = path.join(__dirname, '..', 'dist', 'scripts', 'uninstall.js'); // Check if compiled version exists const fs = require('fs'); if (fs.existsSync(scriptPath)) { // Run the compiled TypeScript version require(scriptPath); } else { // Fallback: run with ts-node if available try { const tsNode = require('ts-node'); const uninstallScript = path.join(__dirname, '..', 'src', 'scripts', 'uninstall.ts'); require(uninstallScript); } catch (error) { console.error('❌ Error: TypeScript version not compiled and ts-node not available'); console.error('Please run: npm run build'); process.exit(1); } } } // Run the uninstall runTypeScriptUninstall();