Skip to content

Commit

Permalink
prettify the JSON as part of emitting
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jan 9, 2018
1 parent f293564 commit 69071e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { spawn } from "./spawn";
import { fetchPR, IAPIPR } from "./api";

const jsonStringify: (obj: any) => string = require('json-pretty');

const PlaceholderChangeType = "???";
const OfficialOwner = "desktop";

Expand Down Expand Up @@ -104,5 +106,5 @@ export async function run(args: ReadonlyArray<string>): Promise<void> {
const previousVersion = args[0];
const lines = await getLogLines(previousVersion);
const changelogEntries = await getChangelogEntries(lines);
console.log(JSON.stringify(changelogEntries));
console.log(jsonStringify(changelogEntries));
}

0 comments on commit 69071e7

Please sign in to comment.