Skip to content

Commit 1676ab4

Browse files
committed
fix: imports in index.ts
updated import statements to include /src/ folder
1 parent c19c50e commit 1676ab4

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

index.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bun
22

3-
import { isUrlValid, validatePort } from "./utils/validator";
3+
import { isUrlValid, validatePort } from "./src/utils/validator";
44
import { createSpinner } from "nanospinner";
5-
import { proxyServer } from "./services/proxyService";
5+
import { proxyServer } from "./src/services/proxyService";
66
import { cli } from "./cli";
7-
import { redis } from "./configs/redis";
8-
import { Cache } from "./services/cacheService";
7+
import { redis } from "./src/configs/redis";
8+
import { Cache } from "./src/services/cacheService";
99

1010
const program = cli();
1111

@@ -46,12 +46,10 @@ const app = async () => {
4646
const cacheStore = new Cache(redisClient);
4747

4848
// clear cache if --clear is specified
49-
if(CLEAR_CACHE){
50-
const isCleared = await cacheStore.flushKeys()
51-
if(isCleared)
52-
console.log("Cached data cleared successfully!");
53-
else
54-
console.log("Failed to clear the cached data :(")
49+
if (CLEAR_CACHE) {
50+
const isCleared = await cacheStore.flushKeys();
51+
if (isCleared) console.log("Cached data cleared successfully!");
52+
else console.log("Failed to clear the cached data :(");
5553
}
5654

5755
// start the proxy server

0 commit comments

Comments
 (0)