aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts/src/utils.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-15 03:48:46 +0800
committerFabio Berger <me@fabioberger.com>2018-05-15 03:48:46 +0800
commitd0905eda496864096f5a64b1e2c1c05b575be904 (patch)
tree86813449bbd72994f6e9ecf1a0fe6d4ddf8197d1 /packages/monorepo-scripts/src/utils.ts
parent7c023233f201852c7f20117b2a358f47e462ae1a (diff)
downloaddexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar.gz
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar.bz2
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar.lz
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar.xz
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.tar.zst
dexon-0x-contracts-d0905eda496864096f5a64b1e2c1c05b575be904.zip
Fix TSLint issues
Diffstat (limited to 'packages/monorepo-scripts/src/utils.ts')
-rw-r--r--packages/monorepo-scripts/src/utils.ts4
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;