diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-15 03:48:46 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-15 05:27:41 +0800 |
commit | 5422bf57332f69d7b45e884c19a9f20d60bdec5b (patch) | |
tree | 589c915c4c085aad68809b7eb5123072beeda8d2 /packages/monorepo-scripts/src/utils.ts | |
parent | da60008048fdf99f3e00e9b83595dfc6572bdf73 (diff) | |
download | dexon-0x-contracts-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.gz dexon-0x-contracts-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.zst dexon-0x-contracts-5422bf57332f69d7b45e884c19a9f20d60bdec5b.zip |
Fix TSLint issues
Diffstat (limited to 'packages/monorepo-scripts/src/utils.ts')
-rw-r--r-- | packages/monorepo-scripts/src/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/monorepo-scripts/src/utils.ts b/packages/monorepo-scripts/src/utils.ts index 4412f753a..480788ad8 100644 --- a/packages/monorepo-scripts/src/utils.ts +++ b/packages/monorepo-scripts/src/utils.ts @@ -17,7 +17,7 @@ export const utils = { const newPatchVersion = `${versionSegments[0]}.${versionSegments[1]}.${newPatch}`; return newPatchVersion; }, - async prettifyAsync(filePath: string, cwd: string) { + async prettifyAsync(filePath: string, cwd: string): Promise<void> { await execAsync(`prettier --write ${filePath} --config .prettierrc`, { cwd, }); @@ -43,7 +43,7 @@ export const utils = { } return updatedPackages; }, - getChangelogJSONIfExists(changelogPath: string) { + getChangelogJSONIfExists(changelogPath: string): string|undefined { try { const changelogJSON = fs.readFileSync(changelogPath, 'utf-8'); return changelogJSON; |