Skip to content

Commit

Permalink
Merge pull request #58 from KotRikD/fix/cyclic
Browse files Browse the repository at this point in the history
fix: cyclic
  • Loading branch information
KotRikD authored Feb 19, 2024
2 parents ede27fc + 49e49f8 commit 5d0ed43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"build": "tsc"
},
"dependencies": {
"@tosu/server": "workspace:*",
"dotenv": "^16.0.3",
"winston": "^3.8.2"
}
Expand Down
5 changes: 2 additions & 3 deletions packages/common/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Server } from '@tosu/server';
import * as dotenv from 'dotenv';
import fs from 'fs';
import path from 'path';
Expand Down Expand Up @@ -111,7 +110,7 @@ export const updateConfigFile = () => {
wLogger.warn(`New options available in config: ${newOptions}\n`);
};

export const watchConfigFile = ({ httpServer }: { httpServer: Server }) => {
export const watchConfigFile = ({ httpServer }: { httpServer: any }) => {
configureLogger();

refreshConfig(httpServer, false);
Expand All @@ -122,7 +121,7 @@ export const watchConfigFile = ({ httpServer }: { httpServer: Server }) => {
});
};

export const refreshConfig = (httpServer: Server, refresh: boolean) => {
export const refreshConfig = (httpServer: any, refresh: boolean) => {
const status = refresh == true ? 'reload' : 'load';

const { parsed, error } = dotenv.config({ path: configPath });
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d0ed43

Please sign in to comment.