Skip to content

Commit

Permalink
⚰️ remove useless dotenv (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 authored Dec 6, 2024
1 parent 983c917 commit 59d2621
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"devDependencies": {
"@types/bun": "1.1.6",
"@woohm402/eslint-config-base": "0.7.0",
"dotenv": "16.4.5",
"eslint": "9.9.0",
"knip": "5.27.2",
"prettier": "3.3.3",
Expand Down
4 changes: 0 additions & 4 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import dotenv from 'dotenv';

import { SlackEvent } from './entities/Slack';
import { implementGitHubDeployWebhookController } from './infrastructures/implementGitHubDeployWebhookController';
import { implementMemberWaffleDotComRepository } from './infrastructures/implementMemberWaffleDotComRepository';
Expand All @@ -8,8 +6,6 @@ import { implementSlackPresenter } from './infrastructures/implementSlackPresent
import { implementDeploymentService } from './services/GithubDeploymentService';
import { implementSlackEventService } from './services/SlackEventService';

dotenv.config({ path: '.env.local' });

const slackAuthToken = process.env.SLACK_AUTH_TOKEN;
const slackBotToken = process.env.SLACK_BOT_TOKEN;
const slackWatcherChannelId = process.env.SLACK_WATCHER_CHANNEL_ID;
Expand Down
6 changes: 1 addition & 5 deletions src/weekly-dashboard.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import dotenv from 'dotenv';

import { implementGithubOctokitRepository } from './infrastructures/implementGithubOctokitRepository';
import { implementMemberWaffleDotComRepository } from './infrastructures/implementMemberWaffleDotComRepository';
import { implementSlackPresenter } from './infrastructures/implementSlackPresenter';
import { implementDashboardService } from './services/DashboardService';

dotenv.config({ path: '.env.local' });

const slackAuthToken = process.env.SLACK_AUTH_TOKEN;
const githubAccessToken = process.env.GHP_ACCESS_TOKEN;
const slackWeeklyChannelId = process.env.SLACK_WEEKLY_CHANNEL_ID;
Expand All @@ -23,7 +19,7 @@ if (githubOrganization === undefined) throw new Error('Missing Github Organizati
██║ ██║█████╗ ██████╔╝█████╗ ██╔██╗ ██║██║ ██║█████╗ ██╔██╗ ██║██║ ██║█████╗ ███████╗
██║ ██║██╔══╝ ██╔═══╝ ██╔══╝ ██║╚██╗██║██║ ██║██╔══╝ ██║╚██╗██║██║ ██║██╔══╝ ╚════██║
██████╔╝███████╗██║ ███████╗██║ ╚████║██████╔╝███████╗██║ ╚████║╚██████╗██║███████╗███████║
╚═════╝ ╚══════╝╚═╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝╚══════╝╚══════╝
╚═════╝ ╚══════╝╚═╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝╚═╝╚══════╝╚══════╝
*/

const dashboardService = implementDashboardService({
Expand Down

0 comments on commit 59d2621

Please sign in to comment.