Skip to content

Commit 4061936

Browse files
committed
refactor: Move lib config files to config directory
1 parent 0b2a184 commit 4061936

7 files changed

Lines changed: 5 additions & 5 deletions

File tree

File renamed without changes.
File renamed without changes.
File renamed without changes.

src/lib/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PATHS } from "./paths"
1+
import { PATHS } from "../config/paths"
22

33
interface CacheEntry {
44
value: string

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import type { Serve } from "bun"
33
import consola from "consola"
44
import fs from "node:fs"
55

6+
import { PATHS } from "./config/paths"
7+
import { TOKENS } from "./config/tokens"
68
import { CACHE } from "./lib/cache"
7-
import { PATHS } from "./lib/paths"
8-
import { TOKENS } from "./lib/tokens"
99
import { server } from "./server"
1010
import { getModels } from "./services/copilot/get-models/service"
1111
import { getCopilotToken } from "./services/copilot/get-token/copilot-token"

src/services/api-instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import consola from "consola"
22
import { FetchError, ofetch } from "ofetch"
33

4-
import { TOKENS } from "~/lib/tokens"
4+
import { TOKENS } from "~/config/tokens"
55

66
export const copilot = ofetch.create({
77
baseURL: "https://api.individual.githubcopilot.com",

src/services/copilot/get-token/github-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import consola from "consola"
22

3-
import { ENV } from "~/lib/env"
3+
import { ENV } from "~/config/env"
44
import { _github } from "~/services/api-instance"
55

66
interface DeviceCodeResponse {

0 commit comments

Comments
 (0)