mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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,
|
||||
nuxt.options._installedModules
|
||||
.filter(m => m.entryPath)
|
||||
.map(m => getDirectory(m.entryPath)),
|
||||
.map(m => getDirectory(m.entryPath!)),
|
||||
)
|
||||
|
||||
const isV4 = nuxt.options.future?.compatibilityVersion === 4
|
||||
|
@ -43,7 +43,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
|
||||
const modules = await resolveNuxtModule(rootDirWithSlash,
|
||||
nuxt.options._installedModules
|
||||
.filter(m => m.entryPath)
|
||||
.map(m => m.entryPath),
|
||||
.map(m => m.entryPath!),
|
||||
)
|
||||
|
||||
const nitroConfig: NitroConfig = defu(nuxt.options.nitro, {
|
||||
|
@ -23,7 +23,10 @@ export default defineUntypedSchema({
|
||||
_nuxtConfigFiles: [],
|
||||
/** @private */
|
||||
appDir: '',
|
||||
/** @private */
|
||||
/**
|
||||
* @private
|
||||
* @type {Array<{ meta: ModuleMeta; timings?: Record<string, number | undefined>; entryPath?: string }>}
|
||||
*/
|
||||
_installedModules: [],
|
||||
/** @private */
|
||||
_modules: [],
|
||||
|
Loading…
Reference in New Issue
Block a user