Skip to content

Commit 84abe0b

Browse files
committed
fix: move logger to runtime directory
1 parent 6ca6441 commit 84abe0b

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Nuxt } from 'nuxt/schema'
22
import type { NuxtDiscordContext, NuxtDiscordOptions } from './types'
33
import { createResolver } from '@nuxt/kit'
4-
import { logger } from './logger'
4+
import { logger } from './runtime/logger'
55

66
export function createContext(options: NuxtDiscordOptions, nuxt: Nuxt): NuxtDiscordContext {
77
return {
File renamed without changes.

src/runtime/server/plugins/discord.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { SlashCommand, SlashCommandRuntime } from '~/src/types'
33
import fs from 'node:fs'
44
import slashCommands from 'discord/slashCommands'
55
import { defineNitroPlugin, useRuntimeConfig } from 'nitropack/runtime'
6-
import { logger } from '../../../logger'
6+
import { logger } from '../../logger'
77
import { DiscordClient } from '../utils/client'
88

99
export default defineNitroPlugin(async (nitro) => {

src/runtime/server/utils/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { NuxtDiscordOptions, SlashCommandOption, SlashCommandOptionType, Sl
33
import process from 'node:process'
44
import { ApplicationCommandOptionType, Events, Client as InternalClient, REST, Routes, SlashCommandBuilder } from 'discord.js'
55
import { useNitroApp } from 'nitropack/runtime'
6-
import { logger } from '../../../logger'
6+
import { logger } from '../../logger'
77

88
export interface DiscordClientErrorBase {
99
type: string

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,5 @@ export interface NuxtDiscordContext {
170170
root: import('@nuxt/kit').Resolver['resolve']
171171
module: import('@nuxt/kit').Resolver['resolve']
172172
}
173-
logger: typeof import('./logger').logger
173+
logger: typeof import('./runtime/logger').logger
174174
}

0 commit comments

Comments
 (0)