Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
301 B

import { execSync } from 'child_process';
export function runCommand(command: string, error?: string) {
try {
return (execSync(command, { stdio: 'inherit' }) || '').toString().trim();
} catch (err) {
console.error(error || `Error while running command: ${command}`);
throw err;
}
}