aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/publish.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/publish.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/publish.ts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 5f4c67e04..72c6c0a71 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -1,11 +1,9 @@
#!/usr/bin/env node
import * as promisify from 'es6-promisify';
-import * as fs from 'fs';
import * as _ from 'lodash';
import * as moment from 'moment';
import opn = require('opn');
-import * as path from 'path';
import { exec as execAsync, spawn } from 'promisify-child-process';
import * as prompt from 'prompt';
import semver = require('semver');
@@ -13,7 +11,7 @@ import semverDiff = require('semver-diff');
import semverSort = require('semver-sort');
import { constants } from './constants';
-import { Changelog, PackageToVersionChange, SemVerIndex, VersionChangelog } from './types';
+import { PackageToVersionChange, SemVerIndex, VersionChangelog } from './types';
import { changelogUtils } from './utils/changelog_utils';
import { utils } from './utils/utils';
@@ -163,7 +161,7 @@ async function updateChangeLogsAsync(updatedPublicLernaPackages: LernaPackage[])
utils.log(`${packageName}: Updated CHANGELOG.json`);
// Generate updated CHANGELOG.md
const changelogMd = changelogUtils.generateChangelogMd(changelog);
- await changelogUtils.writeChangelogMdFileAsync(lernaPackage.location, changelog);
+ await changelogUtils.writeChangelogMdFileAsync(lernaPackage.location, changelogMd);
utils.log(`${packageName}: Updated CHANGELOG.md`);
}