fix(nuxi): don't includeworkspaceDir in tsconfig by default (#8256)

This commit is contained in:
Daniel Roe 2022-10-17 18:53:04 +01:00 committed by GitHub
parent 63d778be13
commit 931ebec376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export const writeTypes = async (nuxt: Nuxt) => {
'./nuxt.d.ts', './nuxt.d.ts',
join(relative(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'), join(relative(nuxt.options.buildDir, nuxt.options.rootDir), '**/*'),
...nuxt.options.srcDir !== nuxt.options.rootDir ? [join(relative(nuxt.options.buildDir, nuxt.options.srcDir), '**/*')] : [], ...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), '**/*')] : []
] ]
}) })

View File

@ -15,6 +15,11 @@ export default defineUntypedSchema({
*/ */
strict: false, strict: false,
/**
* Include parent workspace in the Nuxt project. Mostly useful for themes and module authors.
*/
includeWorkspace: false,
/** /**
* Enable build-time type checking. * Enable build-time type checking.
* *