From 50fafc699bb94181b186350f0d438e3ce63e42e7 Mon Sep 17 00:00:00 2001 From: Guilherme Ventura Date: Fri, 6 Mar 2020 13:30:25 -0300 Subject: [PATCH] feat(Package): Try to fix running problems --- package.json | 7 ++++++- src/helpers/index.js | 12 ++++++------ src/index.js | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 253d040..d71130a 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,11 @@ "version": "0.1.5", "author": "Guilherme Ventura de Souza", "license": "MIT", + "person": { + "name": "Guilherme Ventura de Souza", + "email": "venturalp@gmail.com", + "url": "https://github.com/venturalp" + }, "bin": { "update-linters": "lib/index.js" }, @@ -52,7 +57,7 @@ "fs": false }, "files": [ - "lib" + "lib/" ], "engines": { "node": ">=10" diff --git a/src/helpers/index.js b/src/helpers/index.js index 913deac..3cb6b0a 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -16,10 +16,10 @@ function execAsync(command, startMsg, endMsg) { console.log(`⚠️ stderr: ${stderr}`) } if (!stdout) { - console.log(`✅ ${endMsg} finished`) + console.log(`✔ ${endMsg} finished`) resolve({ error, stdout, stderr }) } else { - console.log(`${stdout}\n✅ ${endMsg} finished`) + console.log(`${stdout}\n✔ ${endMsg} finished`) resolve({ error, stdout, stderr }) } }) @@ -35,8 +35,8 @@ function execCommand(command, startMsg, endMsg) { return } if (stderr) console.log(`⚠️ stderr: ${stderr}`) - if (!stdout) console.log(`✅ ${endMsg} finished`) - else console.log(`${stdout}\n✅ ${endMsg} finished`) + if (!stdout) console.log(`✔ ${endMsg} finished`) + else console.log(`${stdout}\n✔ ${endMsg} finished`) }) } @@ -119,7 +119,7 @@ async function updateJSFile(flag, fileSource, msgLog, config) { console.log(errMsg) reject(errMsg) } - const msg = `✅ Update ${msgLog} settings finished successfully` + const msg = `✔ Update ${msgLog} settings finished successfully` console.log(msg) resolve(msg) }, @@ -139,7 +139,7 @@ function copyConfig(flag, path, msgLog, { mainPath, targetPath }) { new Promise((resolve, reject) => { ncp(`${mainPath}/files/${path}`, `${targetPath}/${path}`, err => { if (err) reject(`❌ Failed to copy ${msgLog} settings\n${err}`) - else resolve(`✅ ${msgLog} settings copied successfully`) + else resolve(`✔ ${msgLog} settings copied successfully`) }) }) .then(value => console.log(`${value}`)) diff --git a/src/index.js b/src/index.js index 79f682e..79b52a6 100644 --- a/src/index.js +++ b/src/index.js @@ -35,7 +35,7 @@ function updateDependencies() { console.log(errMsg) reject(errMsg) } - const msg = '✅ Update dependecies finished successfully' + const msg = '✔ Update dependecies finished successfully' console.log(msg) resolve(msg) },