From dfe91e1aad8c978459637dd32de66949c7081f16 Mon Sep 17 00:00:00 2001 From: Paul Carleton Date: Tue, 21 Apr 2026 16:34:53 +0100 Subject: [PATCH] build: exclude src/examples from published dist Examples are meant to be read and run from the repo via tsx, not imported from the package. Excluding them from the prod/cjs build configs means dist/{esm,cjs}/examples/ is no longer produced and no longer ships in the npm tarball. Follow-up to #1579 / #1553. --- tsconfig.cjs.json | 2 +- tsconfig.prod.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 4b712da77..29b41d1d5 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -6,5 +6,5 @@ "outDir": "./dist/cjs" }, "include": ["src/**/*"], - "exclude": ["**/*.test.ts", "src/__mocks__/**/*", "src/__fixtures__/**/*"] + "exclude": ["**/*.test.ts", "src/__mocks__/**/*", "src/__fixtures__/**/*", "src/examples/**/*"] } diff --git a/tsconfig.prod.json b/tsconfig.prod.json index 82710bd6a..7c4ab9928 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -4,5 +4,5 @@ "outDir": "./dist/esm" }, "include": ["src/**/*"], - "exclude": ["**/*.test.ts", "src/__mocks__/**/*", "src/__fixtures__/**/*"] + "exclude": ["**/*.test.ts", "src/__mocks__/**/*", "src/__fixtures__/**/*", "src/examples/**/*"] }