From c2896a7d92e61130d69a23a1bc29f10d4009100f Mon Sep 17 00:00:00 2001 From: mrholek Date: Fri, 7 Aug 2026 13:14:12 +0200 Subject: [PATCH] chore(build): set an explicit rootDir for declaration output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @rollup/plugin-typescript 12 no longer sets `rootDir` itself, and TypeScript 6 no longer infers the common source directory (TS5011). This repo is still on plugin 11, so the emitted layout is currently correct — but without an explicit `rootDir` the next plugin bump would move the entry declarations to `dist//src/index.d.ts` while `package.json` keeps pointing `types` at `dist//index.d.ts`. That is exactly what broke the pro packages: @coreui/vue-pro from 5.20.0 (coreui/coreui-pro#704) and @coreui/react-pro from 5.27.0, in both cases with TS7016 on every import for every TypeScript consumer. --- packages/coreui-react/tsconfig.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/coreui-react/tsconfig.json b/packages/coreui-react/tsconfig.json index d8b90788..52847f46 100644 --- a/packages/coreui-react/tsconfig.json +++ b/packages/coreui-react/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../../tsconfig", + "compilerOptions": { + "rootDir": "src" + }, "include": ["src/**/*"] } \ No newline at end of file