mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 06:03:22 +08:00
use custom tsconfig for single packages if possible
This commit is contained in:
parent
35ab0aa521
commit
35cf2aee4c
@ -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: [],
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user