From 35cf2aee4ca3843108712062031cae10860d7c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 17 Sep 2021 21:20:11 +0200 Subject: [PATCH] use custom tsconfig for single packages if possible --- rollup.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index c42e9a03..aaf7d128 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,3 +1,4 @@ +import fs from 'fs' import path from 'path' import minimist from 'minimist' import { getPackages } from '@lerna/project' @@ -83,6 +84,9 @@ async function build(commandLineArgs) { }), ...basePlugins, typescript({ + tsconfig: fs.existsSync(`${basePath}/tsconfig.json`) + ? `${basePath}/tsconfig.json` + : 'tsconfig.json', tsconfigOverride: { compilerOptions: { declaration: true, @@ -90,7 +94,7 @@ async function build(commandLineArgs) { '@tiptap/*': ['packages/*/src'], }, }, - include: null, + include: [], }, }), ],