From f220314a59494e7ff0f32a9369c330f03ec939c0 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 18 Dec 2024 17:03:06 +0000 Subject: [PATCH] fix(nuxt): update import paths for `nitropack` --- packages/nuxt/src/app/composables/manifest.ts | 2 +- test/fixtures/basic-types/types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/app/composables/manifest.ts b/packages/nuxt/src/app/composables/manifest.ts index d2ec8a58df..88ffe3ea9b 100644 --- a/packages/nuxt/src/app/composables/manifest.ts +++ b/packages/nuxt/src/app/composables/manifest.ts @@ -2,7 +2,7 @@ import type { MatcherExport, RouteMatcher } from 'radix3' import { createMatcherFromExport, createRouter as createRadixRouter, toRouteMatcher } from 'radix3' import { defu } from 'defu' import type { H3Event } from 'h3' -import type { NitroRouteRules } from 'nitro/types' +import type { NitroRouteRules } from 'nitropack' import { useNuxtApp, useRuntimeConfig } from '../nuxt' // @ts-expect-error virtual file import { appManifest as isAppManifestEnabled } from '#build/nuxt.config.mjs' diff --git a/test/fixtures/basic-types/types.ts b/test/fixtures/basic-types/types.ts index 04e75e217e..83fad430f2 100644 --- a/test/fixtures/basic-types/types.ts +++ b/test/fixtures/basic-types/types.ts @@ -3,8 +3,8 @@ import type { Ref, SlotsType } from 'vue' import type { FetchError } from 'ofetch' import type { NavigationFailure, RouteLocationNormalized, RouteLocationRaw, Router, useRouter as vueUseRouter } from 'vue-router' import type { H3Event } from 'h3' -import { getRouteRules as getNitroRouteRules } from 'nitro/runtime' -import type { NitroRouteRules } from 'nitro/types' +import { getRouteRules as getNitroRouteRules } from 'nitropack/runtime' +import type { NitroRouteRules } from 'nitropack' import type { AppConfig, RuntimeValue, UpperSnakeCase } from 'nuxt/schema' import { defineNuxtModule } from 'nuxt/kit'