@chuva.io/less-cli
Advanced tools
Comparing version 1.0.0-beta.43 to 1.0.0-beta.44
@@ -18,2 +18,4 @@ import ora from 'ora'; | ||
app.stdout.on('data', (data) => { | ||
data = data.toString('utf-8').slice(0, -1); | ||
if (data.includes(app_config.app_running_flag)) { | ||
@@ -43,3 +45,3 @@ spinner.stop(); | ||
if (data.includes(config.less_local_error_flag) || data.includes(config.less_local_info_flag)) { | ||
let data_string = data.toString('utf-8'); | ||
let data_string = data; | ||
const errors = data_string.match( | ||
@@ -59,3 +61,3 @@ new RegExp(`${config.less_local_error_flag}.*${config.less_local_error_flag}`, 'g') | ||
console.log(chalk.redBright( | ||
console.error(chalk.redBright( | ||
error | ||
@@ -66,3 +68,3 @@ .replace('<##>', '') | ||
)); | ||
console.log(error_message, '\n'); | ||
console.error(error_message); | ||
}); | ||
@@ -74,3 +76,3 @@ } | ||
data_string = data_string.replaceAll(info, ''); | ||
console.log(chalk.greenBright(info.replaceAll(config.less_local_info_flag, '')), '\n'); | ||
console.info(chalk.greenBright(info.replaceAll(config.less_local_info_flag, ''))); | ||
}); | ||
@@ -83,3 +85,3 @@ } | ||
console.log(`${data}`.replace('\n', '')); | ||
console.log(data); | ||
}); | ||
@@ -86,0 +88,0 @@ |
{ | ||
"name": "@chuva.io/less-cli", | ||
"version": "1.0.0-beta.43", | ||
"version": "1.0.0-beta.44", | ||
"description": "`less-cli` is a CLI tool that allows you to deploy your Less projects to AWS while providing several other tools to facilitate your interaction with Less.", | ||
@@ -5,0 +5,0 @@ "author": "Chuva, LLC", |
168786
4068