mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(nuxt): include external layers in tsconfig.json
scope (#21917)
This commit is contained in:
parent
ddb02f6486
commit
a9904a3ff7
@ -30,6 +30,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._layers.filter(layer => !(layer.config.srcDir ?? layer.cwd).startsWith(nuxt.options.rootDir)).map(layer => join(relative(nuxt.options.buildDir, layer.config.srcDir ?? layer.cwd), '**/*')),
|
||||||
...nuxt.options.typescript.includeWorkspace && 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), '**/*')] : []
|
||||||
],
|
],
|
||||||
exclude: [
|
exclude: [
|
||||||
|
Loading…
Reference in New Issue
Block a user