From 24cce84e4bfccb1539053179e966647fdd26a3c9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 29 Apr 2023 23:51:28 +0100 Subject: [PATCH] feat(nuxt): add layer meta and env overrides to config types (#20329) --- packages/nuxt/config.d.ts | 3 ++- packages/nuxt/package.json | 1 + pnpm-lock.yaml | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nuxt/config.d.ts b/packages/nuxt/config.d.ts index 8d844bad60..ddd2beade0 100644 --- a/packages/nuxt/config.d.ts +++ b/packages/nuxt/config.d.ts @@ -1,4 +1,5 @@ import type { NuxtConfig } from 'nuxt/schema' +import type { DefineConfig, InputConfig, UserInputConfig, ConfigLayerMeta } from 'c12' export { NuxtConfig } from 'nuxt/schema' -export declare function defineNuxtConfig(config: NuxtConfig): NuxtConfig +export declare const defineNuxtConfig: DefineConfig diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 2dabc903b3..4a53a1a102 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -61,6 +61,7 @@ "@unhead/ssr": "^1.1.26", "@unhead/vue": "^1.1.26", "@vue/shared": "^3.2.47", + "c12": "^1.3.0", "chokidar": "^3.5.3", "cookie-es": "^0.5.0", "defu": "^6.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b89cd58db9..b2aaefb3ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -587,6 +587,9 @@ importers: '@vue/shared': specifier: ^3.2.47 version: 3.2.47 + c12: + specifier: ^1.3.0 + version: 1.4.1 chokidar: specifier: ^3.5.3 version: 3.5.3