Skip to content

Commit e4bfea6

Browse files
committed
fix(nuxt,schema): add types for _installedModules
1 parent 2c51025 commit e4bfea6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/kit/src/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function _generateTypes (nuxt: Nuxt) {
120120
const modulePaths = await resolveNuxtModule(rootDirWithSlash,
121121
nuxt.options._installedModules
122122
.filter(m => m.entryPath)
123-
.map(m => getDirectory(m.entryPath)),
123+
.map(m => getDirectory(m.entryPath!)),
124124
)
125125

126126
const isV4 = nuxt.options.future?.compatibilityVersion === 4

packages/nuxt/src/core/nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
4343
const modules = await resolveNuxtModule(rootDirWithSlash,
4444
nuxt.options._installedModules
4545
.filter(m => m.entryPath)
46-
.map(m => m.entryPath),
46+
.map(m => m.entryPath!),
4747
)
4848

4949
const nitroConfig: NitroConfig = defu(nuxt.options.nitro, {

packages/schema/src/config/internal.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export default defineUntypedSchema({
2323
_nuxtConfigFiles: [],
2424
/** @private */
2525
appDir: '',
26-
/** @private */
26+
/**
27+
* @private
28+
* @type {Array<{ meta: ModuleMeta; timings?: Record<string, number | undefined>; entryPath?: string }>}
29+
*/
2730
_installedModules: [],
2831
/** @private */
2932
_modules: [],

0 commit comments

Comments
 (0)