aboutsummaryrefslogtreecommitdiffstats
path: root/packages/monorepo-scripts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-05 00:54:44 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2019-01-05 00:54:44 +0800
commit442de09bbe36cb4a1c2d32cca6e65aee710f6382 (patch)
tree046666611442d032b0ec6285e11ebddb12be1a88 /packages/monorepo-scripts
parent9131ca15620362565ca90a54971a3fc609876e9f (diff)
downloaddexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar.gz
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar.bz2
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar.lz
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar.xz
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.tar.zst
dexon-sol-tools-442de09bbe36cb4a1c2d32cca6e65aee710f6382.zip
Add async suffix
Diffstat (limited to 'packages/monorepo-scripts')
-rw-r--r--packages/monorepo-scripts/src/publish.ts4
-rw-r--r--packages/monorepo-scripts/src/utils/discord.ts2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 923248360..f11f998b8 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -14,7 +14,7 @@ import { constants } from './constants';
import { Package, PackageToNextVersion, VersionChangelog } from './types';
import { changelogUtils } from './utils/changelog_utils';
import { configs } from './utils/configs';
-import { alertDiscord } from './utils/discord';
+import { alertDiscordAsync } from './utils/discord';
import { DocGenerateAndUploadUtils } from './utils/doc_generate_and_upload_utils';
import { publishReleaseNotesAsync } from './utils/github_release_utils';
import { utils } from './utils/utils';
@@ -90,7 +90,7 @@ async function confirmAsync(message: string): Promise<void> {
if (!isDryRun && releaseNotes) {
try {
- await alertDiscord(releaseNotes);
+ await alertDiscordAsync(releaseNotes);
} catch (e) {
utils.log("Couldn't alert discord, error: ", e.message, '. Please alert manually.');
}
diff --git a/packages/monorepo-scripts/src/utils/discord.ts b/packages/monorepo-scripts/src/utils/discord.ts
index 116b1b908..ed10b1cc3 100644
--- a/packages/monorepo-scripts/src/utils/discord.ts
+++ b/packages/monorepo-scripts/src/utils/discord.ts
@@ -4,7 +4,7 @@ import { constants } from '../constants';
import { utils } from './utils';
-export const alertDiscord = async (releaseNotes: string): Promise<boolean> => {
+export const alertDiscordAsync = async (releaseNotes: string): Promise<boolean> => {
const webhookUrl = constants.discordAlertWebhookUrl;
if (!webhookUrl) {
utils.log('Not alerting to discord because webhook url not set');