From 96b6d4fe264dfd71e6a3e56c9b6e3f1eea434457 Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Mon, 29 Jun 2026 11:43:34 -0400 Subject: [PATCH 1/2] feat(workspace): add tsconfig for examples --- packages/tsconfig.examples.json | 10 ++++++++++ tsconfig.json | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 packages/tsconfig.examples.json create mode 100644 tsconfig.json diff --git a/packages/tsconfig.examples.json b/packages/tsconfig.examples.json new file mode 100644 index 00000000000..e1a88deff63 --- /dev/null +++ b/packages/tsconfig.examples.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.base.json", + "compilerOptions": { + "noEmit": true, + "composite": false, + "declarationMap": false + }, + "include": ["**/examples/**/*.tsx", "**/demos/examples/**/*.tsx"], + "exclude": ["**/**.test.tsx", "**/**.test.ts", "**/__mocks__/**"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000000..ae5432c48b5 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,4 @@ +{ + "files": [], + "references": [{ "path": "./packages/tsconfig.json" }, { "path": "./packages/tsconfig.examples.json" }] +} From a8d2ed028865a4b84db5523dc84289a3933cfaf8 Mon Sep 17 00:00:00 2001 From: Katie McFaul Date: Mon, 29 Jun 2026 12:08:28 -0400 Subject: [PATCH 2/2] refactor for composite issue, separate examples tsconfig --- packages/tsconfig.examples.json | 17 ++++++++++++----- tsconfig.json | 3 +-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/tsconfig.examples.json b/packages/tsconfig.examples.json index e1a88deff63..bfa9f1928dd 100644 --- a/packages/tsconfig.examples.json +++ b/packages/tsconfig.examples.json @@ -1,10 +1,17 @@ { - "extends": "./tsconfig.base.json", "compilerOptions": { - "noEmit": true, - "composite": false, - "declarationMap": false + "jsx": "react-jsx", + "lib": ["es2015", "dom"], + "target": "es2015", + "module": "es2015", + "moduleResolution": "node", + "esModuleInterop": true, + "skipLibCheck": true, + "strict": true, + "strictNullChecks": false, + "isolatedModules": true, + "noEmit": true }, - "include": ["**/examples/**/*.tsx", "**/demos/examples/**/*.tsx"], + "include": ["**/examples/**/*.tsx"], "exclude": ["**/**.test.tsx", "**/**.test.ts", "**/__mocks__/**"] } diff --git a/tsconfig.json b/tsconfig.json index ae5432c48b5..07feba27e87 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,3 @@ { - "files": [], - "references": [{ "path": "./packages/tsconfig.json" }, { "path": "./packages/tsconfig.examples.json" }] + "extends": "./packages/tsconfig.examples.json" }