diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-15 03:48:46 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-05-15 03:48:46 +0800 |
commit | d0905eda496864096f5a64b1e2c1c05b575be904 (patch) | |
tree | 86813449bbd72994f6e9ecf1a0fe6d4ddf8197d1 /packages/monorepo-scripts/src/utils.ts | |
parent | 7c023233f201852c7f20117b2a358f47e462ae1a (diff) | |
download | dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar.gz dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar.bz2 dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar.lz dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar.xz dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.tar.zst dexon-sol-tools-d0905eda496864096f5a64b1e2c1c05b575be904.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; |