Skip to content

Commit

Permalink
Fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cjonasw committed Apr 29, 2021
1 parent c49a5a7 commit 8eaab50
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixaki",
"version": "0.0.8",
"version": "0.0.9",
"description": "",
"scripts": {
"build": "rimraf dist && npx webpack && node chmod && cp src/package.json dist/package.json && cp src/README.md dist/README.md",
Expand Down
4 changes: 2 additions & 2 deletions src/exporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export default function (path: string, columns: number, outDir: string) {
convert(pages.concat(['-background', 'transparent', '-layers', 'merge', '+repage', `./${outFilePath}`]), (error) => {

if (error) {
console.log(`\x1b[31m%s\x1b[0m ${outFilePath}.png (${error})`, 'x');
console.log(`\x1b[31m%s\x1b[0m ${outFilePath} (${error})`, 'x');
failCount++;
} else {
console.log(`\x1b[32m%s\x1b[0m ${outFilePath}.png`, `✔️`);
console.log(`\x1b[32m%s\x1b[0m ${outFilePath}`, `✔️`);
successCount++;
}

Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pixaki",
"description": "A CLI for Pixaki",
"version": "0.0.8",
"version": "0.0.9",
"repository": {
"type": "git",
"url": "git://github.com/pixools/pixaki-cli.git"
Expand Down

0 comments on commit 8eaab50

Please sign in to comment.