diff --git a/packages/nuxt/app.d.ts b/packages/nuxt/app.d.ts index 87a04c5795..4e453551ce 100644 --- a/packages/nuxt/app.d.ts +++ b/packages/nuxt/app.d.ts @@ -1 +1 @@ -export * from './dist/app/index.js' +export * from './dist/app/index' diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index b5795e54f1..f994e3b5ad 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -43,6 +43,14 @@ "#app": { "types": "./dist/app/index.d.ts", "import": "./dist/app/index.js" + }, + "#app/defaults": { + "types": "./dist/app/defaults.d.ts", + "import": "./dist/app/defaults.js" + }, + "#app/nuxt": { + "types": "./dist/app/nuxt.d.ts", + "import": "./dist/app/nuxt.js" } }, "files": [ diff --git a/packages/nuxt/src/app/types/augments.d.ts b/packages/nuxt/src/app/types/augments.d.ts index 5e5dd8cf44..89d3482309 100644 --- a/packages/nuxt/src/app/types/augments.d.ts +++ b/packages/nuxt/src/app/types/augments.d.ts @@ -1,5 +1,5 @@ import type { UseHeadInput } from '@unhead/vue' -import type { NuxtApp, useNuxtApp } from '../nuxt' +import type { NuxtApp, useNuxtApp } from '../nuxt.js' declare global { namespace NodeJS {