Skip to content

Commit

Permalink
chore: add simple file-updates logs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jun 9, 2020
1 parent c856e23 commit ee3b691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/files/ContributorsJsonFile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import writeJsonFile from "write-json-file";
import loadJsonFile from "load-json-file";
import { yellow } from "chalk";
import { cyan, yellow } from "chalk";
export type ContributorsListContributor = {
username: string;
name: string;
Expand Down Expand Up @@ -72,6 +72,7 @@ export default class ContributorsJsonFile {
});

await this.saveContributorsList();
console.log(cyan(`${this.config.path} file updated.`));
}

}
2 changes: 2 additions & 0 deletions src/files/RenderToFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import fs from "fs";
import ContributorsJsonFile from "./ContributorsJsonFile";
import { ContributorsRenderer } from "..";
import render from "./RenderToFile/render";
import { cyan } from "chalk";

export type RenderToFileConfig = {
path: string;
Expand Down Expand Up @@ -55,5 +56,6 @@ export default class RenderToFile {
}

await this.saveRenderTo();
console.log(cyan(`${this.config.path} file updated.`));
}
}

0 comments on commit ee3b691

Please sign in to comment.