Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxi): exclude dist from type checking #8848

Merged
merged 3 commits into from Nov 10, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/nuxi/src/utils/prepare.ts
Expand Up @@ -29,7 +29,11 @@ export const writeTypes = async (nuxt: Nuxt) => {
join(relative(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'),
...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [],
...nuxt.options.typescript.includeWorkspace && nuxt.options.workspaceDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.workspaceDir), '**/*')] : []
]
],
exclude: [
// nitro generate output
resolve(nuxt.options.rootDir, 'dist')
pi0 marked this conversation as resolved.
Show resolved Hide resolved
].map(p => relative(nuxt.options.buildDir, p))
})

const aliases: Record<string, string> = {
Expand Down