Skip to content

Commit

Permalink
Move discord url from global to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
brafdlog committed Aug 30, 2024
1 parent 659c30e commit 9c1dfbc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion globals.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ module.exports = {
GOOGLE_CLIENT_SECRET: JSON.stringify(process.env.GOOGLE_CLIENT_SECRET),
SEGMENT_WRITE_KEY: JSON.stringify(process.env.SEGMENT_WRITE_KEY),
SOURCE_COMMIT_SHORT: JSON.stringify(process.env.GITHUB_SHA),
DISCORD_CHANNEL: JSON.stringify('https://discord.gg/XWWg7xvJyS'),
APP_NAME: JSON.stringify('Caspion'),
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"url": "https://kozack.me"
},
"repository": "https://github.com/brafdlog/caspion",
"discord": "https://discord.gg/XWWg7xvJyS",
"homepage": "https://github.com/brafdlog/caspion#README.md",
"main": "packages/main/dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/main/src/handlers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { createSpreadsheet } from '@/backend/export/outputVendors/googleSheets/g
import { getAllSpreadsheets } from '@/backend/export/outputVendors/googleSheets/googleSheetsInternalAPI';
import { getYnabAccountData } from '@/manual/setupHelpers';
import { type IpcMainEvent, dialog, ipcMain, type IpcMainInvokeEvent } from 'electron';
import { repository } from '../../../../package.json';
import { repository, discord } from '../../../../package.json';
import Sentry from '../logging/sentry';
import { getConfigHandler, updateConfigHandler } from './configHandlers';
import { getLogsInfoHandler } from './logsHandlers';
Expand All @@ -37,7 +37,7 @@ const functions: Record<string, Listener> = {
return {
sourceCommitShort: import.meta.env.SOURCE_COMMIT_SHORT,
repository,
discordChanel: import.meta.env.DISCORD_CHANNEL,
discordChanel: discord,
currentVersion: App.getVersion(),
};
},
Expand Down
1 change: 0 additions & 1 deletion types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ interface ImportMetaEnv {
readonly SEGMENT_WRITE_KEY: string;

readonly SOURCE_COMMIT_SHORT: string;
readonly DISCORD_CHANNEL: string;
}

interface ImportMeta {
Expand Down

0 comments on commit 9c1dfbc

Please sign in to comment.