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

Commit

Permalink
fix(nuxi): don't includeworkspaceDir in tsconfig by default (#8256)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 17, 2022
1 parent 63d778b commit 931ebec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxi/src/utils/prepare.ts
Expand Up @@ -28,7 +28,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
'./nuxt.d.ts',
join(relative(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'),
...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [],
...nuxt.options.workspaceDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.workspaceDir), '**/*')] : []
...nuxt.options.typescript.includeWorkspace && nuxt.options.workspaceDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.workspaceDir), '**/*')] : []
]
})

Expand Down
5 changes: 5 additions & 0 deletions packages/schema/src/config/typescript.ts
Expand Up @@ -15,6 +15,11 @@ export default defineUntypedSchema({
*/
strict: false,

/**
* Include parent workspace in the Nuxt project. Mostly useful for themes and module authors.
*/
includeWorkspace: false,

/**
* Enable build-time type checking.
*
Expand Down

0 comments on commit 931ebec

Please sign in to comment.