serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
17 lines (13 loc) • 425 B
JavaScript
;
const { execSync: originalExecSync } = require('child_process');
function execSync(command, options = null) {
// Same as native but outputs std in case of error
try {
return originalExecSync(command, options);
} catch (error) {
if (error.stdout) process.stdout.write(error.stdout);
if (error.stderr) process.stderr.write(error.stderr);
throw error;
}
}
module.exports = { execSync };