diff --git a/src/runtime/01.plugin.ts b/src/runtime/01.plugin.ts index fa19f896..9c041c12 100644 --- a/src/runtime/01.plugin.ts +++ b/src/runtime/01.plugin.ts @@ -1,7 +1,7 @@ import type { RouteLocationNormalizedLoaded, RouteLocationRaw, Router } from 'vue-router' import { defineNuxtPlugin, useRuntimeConfig } from '#app' import { useRoute, useRouter } from '#imports' -import type { ModuleOptions } from '~/src/module' +import type { ModuleOptions } from '../module' // Интерфейс для переводов, поддерживающий разные типы данных interface Translations { diff --git a/src/runtime/02.meta.ts b/src/runtime/02.meta.ts index f3f212f9..67ea6586 100644 --- a/src/runtime/02.meta.ts +++ b/src/runtime/02.meta.ts @@ -1,6 +1,6 @@ import { useHead, defineNuxtPlugin, useRuntimeConfig } from '#app' import { useRoute } from '#imports' -import type { ModuleOptions } from '~/src/module' +import type { ModuleOptions } from '../module' interface State extends ModuleOptions { rootDir: string diff --git a/src/runtime/03.define.ts b/src/runtime/03.define.ts index e991ac62..df58697e 100644 --- a/src/runtime/03.define.ts +++ b/src/runtime/03.define.ts @@ -1,6 +1,6 @@ import { defineNuxtPlugin, useRuntimeConfig } from '#app' import { useRoute, useRouter } from '#imports' -import type { ModuleOptions } from '~/src/module' +import type { ModuleOptions } from '../module' interface State extends ModuleOptions { rootDir: string diff --git a/src/runtime/04.auto-detect.ts b/src/runtime/04.auto-detect.ts index 476c6b12..627de943 100644 --- a/src/runtime/04.auto-detect.ts +++ b/src/runtime/04.auto-detect.ts @@ -1,5 +1,5 @@ +import type { ModuleOptions } from '../module' import { defineNuxtPlugin, useCookie } from '#app' -import type { ModuleOptions } from '~/src/module' import { useRoute, useRouter } from '#imports' interface State extends ModuleOptions { diff --git a/src/runtime/composables/useI18n.ts b/src/runtime/composables/useI18n.ts index 3e95a354..e2369eca 100644 --- a/src/runtime/composables/useI18n.ts +++ b/src/runtime/composables/useI18n.ts @@ -1,5 +1,5 @@ import { useNuxtApp } from '#imports' -import type { PluginsInjections } from '~/src/runtime/01.plugin' +import type { PluginsInjections } from '../01.plugin' export function useI18n(): PluginsInjections { const nuxtApp = useNuxtApp() diff --git a/src/runtime/server/middleware/i18n-redirect.ts b/src/runtime/server/middleware/i18n-redirect.ts index cb5037cb..372f75af 100644 --- a/src/runtime/server/middleware/i18n-redirect.ts +++ b/src/runtime/server/middleware/i18n-redirect.ts @@ -1,7 +1,7 @@ import { defineEventHandler, sendRedirect } from 'h3' import type { H3Event } from 'h3' import type { Locale } from 'nuxt-i18n-micro' -import type { ModuleOptions } from '~/src/module' +import type { ModuleOptions } from '../../../module' import { useRuntimeConfig } from '#imports' export default defineEventHandler(async (event: H3Event) => {