aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils/changelog_utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-19 05:15:52 +0800
committerFabio Berger <me@fabioberger.com>2018-06-19 05:15:52 +0800
commit880cbd88c2416c9a3281542c68affb862bd90575 (patch)
tree56291cca4dbc72bdee9af73dc7502082af154f9e /packages/monorepo-scripts/src/utils/changelog_utils.ts
parentdcd53c3c5bc251af242166cf758146649eb4185b (diff)
downloaddexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar.gz
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar.bz2
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar.lz
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar.xz
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.tar.zst
dexon-sol-tools-880cbd88c2416c9a3281542c68affb862bd90575.zip
Small fixes
Diffstat (limited to 'packages/monorepo-scripts/src/utils/changelog_utils.ts')
-rw-r--r--packages/monorepo-scripts/src/utils/changelog_utils.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/utils/changelog_utils.ts b/packages/monorepo-scripts/src/utils/changelog_utils.ts
index a589fe985..dbafb6f16 100644
--- a/packages/monorepo-scripts/src/utils/changelog_utils.ts
+++ b/packages/monorepo-scripts/src/utils/changelog_utils.ts
@@ -4,7 +4,6 @@ import * as moment from 'moment';
import * as path from 'path';
import { exec as execAsync } from 'promisify-child-process';
import semver = require('semver');
-import semverSort = require('semver-sort');
import { constants } from '../constants';
import { Change, Changelog, VersionChangelog } from '../types';
@@ -94,9 +93,9 @@ export const changelogUtils = {
fs.writeFileSync(changelogJSONPath, JSON.stringify(changelog, null, '\t'));
await this.prettifyAsync(changelogJSONPath, constants.monorepoRootPath);
},
- async writeChangelogMdFileAsync(packageLocation: string, changelog: Changelog): Promise<void> {
+ async writeChangelogMdFileAsync(packageLocation: string, changelogMdString: string): Promise<void> {
const changelogMarkdownPath = path.join(packageLocation, 'CHANGELOG.md');
- fs.writeFileSync(changelogMarkdownPath, JSON.stringify(changelog, null, '\t'));
+ fs.writeFileSync(changelogMarkdownPath, changelogMdString);
await this.prettifyAsync(changelogMarkdownPath, constants.monorepoRootPath);
},
async prettifyAsync(filePath: string, cwd: string): Promise<void> {