mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxi): don't includeworkspaceDir
in tsconfig by default (#8256)
This commit is contained in:
parent
63d778be13
commit
931ebec376
@ -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), '**/*')] : []
|
||||
]
|
||||
})
|
||||
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user