From 4c3ce0f2ad70714e7c6bd7380877ec5fe0511d08 Mon Sep 17 00:00:00 2001 From: Aliullov Vlad Date: Fri, 20 Feb 2026 15:11:10 +0100 Subject: [PATCH] fix npm build: exclude test files from result --- packages/devextreme/project.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/devextreme/project.json b/packages/devextreme/project.json index 38fb8978a007..e05dd2553fcb 100644 --- a/packages/devextreme/project.json +++ b/packages/devextreme/project.json @@ -168,7 +168,13 @@ "executor": "devextreme-nx-infra-plugin:build-typescript", "options": { "srcPattern": "./js/__internal/**/*.{ts,tsx}", - "excludePatterns": ["./js/__internal/**/__tests__/**/*"], + "excludePatterns": [ + "./js/__internal/**/__tests__/**/*", + "./js/__internal/**/test_utils/**/*", + "./js/__internal/**/*.test_utils.ts", + "./js/__internal/**/*.test.ts", + "./js/__internal/**/*.test.tsx" + ], "tsconfig": "./js/__internal/tsconfig.json", "outDir": "./artifacts/dist_ts", "resolvePaths": true, @@ -177,6 +183,10 @@ "inputs": [ "{projectRoot}/js/__internal/**/*.{ts,tsx}", "!{projectRoot}/js/__internal/**/__tests__/**/*", + "!{projectRoot}/js/__internal/**/test_utils/**/*", + "!{projectRoot}/js/__internal/**/*.test.ts", + "!{projectRoot}/js/__internal/**/*.test_utils.ts", + "!{projectRoot}/js/__internal/**/*.test.tsx", "{projectRoot}/js/__internal/tsconfig.json" ], "outputs": [