Skip to content

Commit

Permalink
fix: cyclic
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Feb 19, 2024
1 parent ede27fc commit 49e49f8
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 49e49f8

Please sign in to comment.