use custom tsconfig for single packages if possible

This commit is contained in:
Philipp Kühn 2021-09-17 21:20:11 +02:00
parent 35ab0aa521
commit 35cf2aee4c

View File

@ -1,3 +1,4 @@
import fs from 'fs'
import path from 'path' import path from 'path'
import minimist from 'minimist' import minimist from 'minimist'
import { getPackages } from '@lerna/project' import { getPackages } from '@lerna/project'
@ -83,6 +84,9 @@ async function build(commandLineArgs) {
}), }),
...basePlugins, ...basePlugins,
typescript({ typescript({
tsconfig: fs.existsSync(`${basePath}/tsconfig.json`)
? `${basePath}/tsconfig.json`
: 'tsconfig.json',
tsconfigOverride: { tsconfigOverride: {
compilerOptions: { compilerOptions: {
declaration: true, declaration: true,
@ -90,7 +94,7 @@ async function build(commandLineArgs) {
'@tiptap/*': ['packages/*/src'], '@tiptap/*': ['packages/*/src'],
}, },
}, },
include: null, include: [],
}, },
}), }),
], ],