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 05:27:41 +0800
commit5422bf57332f69d7b45e884c19a9f20d60bdec5b (patch)
tree589c915c4c085aad68809b7eb5123072beeda8d2 /packages/monorepo-scripts/src/utils.ts
parentda60008048fdf99f3e00e9b83595dfc6572bdf73 (diff)
downloaddexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.gz
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.bz2
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.lz
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.xz
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.tar.zst
dexon-sol-tools-5422bf57332f69d7b45e884c19a9f20d60bdec5b.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;