From 0e2151e7533fea3ef907655b046bd2cbce3e1d4b Mon Sep 17 00:00:00 2001 From: manasa Date: Wed, 26 Aug 2026 15:16:17 +0530 Subject: [PATCH] Fixed DefaultTheme errors while building custom components --- .gitignore | 1 + constellation-tsconfigs/tsconfig.build.json | 3 ++- constellation-tsconfigs/tsconfig.json | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b16b349b1..eb39a75d9 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,7 @@ pnpm-debug.log* # Files generated during component compilation /lib +*.tsbuildinfo # test output directories (jest, playwright) test-results/ diff --git a/constellation-tsconfigs/tsconfig.build.json b/constellation-tsconfigs/tsconfig.build.json index 1758b1cd5..b811047d9 100644 --- a/constellation-tsconfigs/tsconfig.build.json +++ b/constellation-tsconfigs/tsconfig.build.json @@ -20,5 +20,6 @@ "allowSyntheticDefaultImports": true, // "skipLibCheck" must be true in order to not see errors in the @pega/pcore-pconnect-typedefs files themselves "skipLibCheck": true - } + }, + "files": ["../src/theme.ts"] } diff --git a/constellation-tsconfigs/tsconfig.json b/constellation-tsconfigs/tsconfig.json index b43d8a379..6a0c0cb98 100644 --- a/constellation-tsconfigs/tsconfig.json +++ b/constellation-tsconfigs/tsconfig.json @@ -17,7 +17,7 @@ // Need to specify typeRoots to find the types and types to constrain // where to look in @pega (to only get pcore-pconnect-typedefs) // NOTE: need to point to relative path to node_modules (../) - "typeRoots": ["../node_modules/@types", "../node_modules/@pega"], - "types": ["jest", "@testing-library/jest-dom", "pcore-pconnect-typedefs"] + "typeRoots": ["../node_modules/@types", "../node_modules/@pega", "../node_modules/@testing-library"], + "types": ["jest", "jest-dom", "pcore-pconnect-typedefs"] } }