mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(nuxt,schema): add types for _installedModules
This commit is contained in:
parent
2c5102557a
commit
e4bfea6428
@ -120,7 +120,7 @@ export async function _generateTypes (nuxt: Nuxt) {
|
|||||||
const modulePaths = await resolveNuxtModule(rootDirWithSlash,
|
const modulePaths = await resolveNuxtModule(rootDirWithSlash,
|
||||||
nuxt.options._installedModules
|
nuxt.options._installedModules
|
||||||
.filter(m => m.entryPath)
|
.filter(m => m.entryPath)
|
||||||
.map(m => getDirectory(m.entryPath)),
|
.map(m => getDirectory(m.entryPath!)),
|
||||||
)
|
)
|
||||||
|
|
||||||
const isV4 = nuxt.options.future?.compatibilityVersion === 4
|
const isV4 = nuxt.options.future?.compatibilityVersion === 4
|
||||||
|
@ -43,7 +43,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
|||||||
const modules = await resolveNuxtModule(rootDirWithSlash,
|
const modules = await resolveNuxtModule(rootDirWithSlash,
|
||||||
nuxt.options._installedModules
|
nuxt.options._installedModules
|
||||||
.filter(m => m.entryPath)
|
.filter(m => m.entryPath)
|
||||||
.map(m => m.entryPath),
|
.map(m => m.entryPath!),
|
||||||
)
|
)
|
||||||
|
|
||||||
const nitroConfig: NitroConfig = defu(nuxt.options.nitro, {
|
const nitroConfig: NitroConfig = defu(nuxt.options.nitro, {
|
||||||
|
@ -23,7 +23,10 @@ export default defineUntypedSchema({
|
|||||||
_nuxtConfigFiles: [],
|
_nuxtConfigFiles: [],
|
||||||
/** @private */
|
/** @private */
|
||||||
appDir: '',
|
appDir: '',
|
||||||
/** @private */
|
/**
|
||||||
|
* @private
|
||||||
|
* @type {Array<{ meta: ModuleMeta; timings?: Record<string, number | undefined>; entryPath?: string }>}
|
||||||
|
*/
|
||||||
_installedModules: [],
|
_installedModules: [],
|
||||||
/** @private */
|
/** @private */
|
||||||
_modules: [],
|
_modules: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user