tw-runner
Version:
Run and manage Tower Website projects with this utility.
17 lines (12 loc) ⢠374 B
JavaScript
import { execSync } from 'child_process';
try {
const packageName = 'tw-runner';
const cmd = `npm install -g ${packageName}`;
console.log(`š Running: ${cmd}`);
execSync(cmd, { stdio: 'inherit' });
console.log('\nā
CLI successfully updated.');
} catch (err) {
console.error('ā Failed to update:', err.message);
process.exit(1);
}