From b8c912dc7a6bfae2dc6534f5331792babaef9e11 Mon Sep 17 00:00:00 2001 From: vivek ajage Date: Thu, 19 Sep 2024 12:32:46 +0100 Subject: [PATCH] fix(react-native): typescript lib schema --- .../files/base/tsconfig.app.json.template | 13 ++++++++++++- .../library/files/lib/tsconfig.lib.json.template | 13 ++++++++++++- .../files/app/tsconfig.app.json.template | 11 ++++++++++- .../library/files/lib/tsconfig.lib.json.template | 11 ++++++++++- 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/packages/expo/src/generators/application/files/base/tsconfig.app.json.template b/packages/expo/src/generators/application/files/base/tsconfig.app.json.template index 80217c0f62c44b..4e09a5b35ff50a 100644 --- a/packages/expo/src/generators/application/files/base/tsconfig.app.json.template +++ b/packages/expo/src/generators/application/files/base/tsconfig.app.json.template @@ -5,6 +5,17 @@ "types": ["node"] }, "files": ["<%= offsetFromRoot %>node_modules/@nx/expo/typings/svg.d.ts"], - "exclude": ["jest.config.ts", "**/*.spec.ts", "**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "jest.config.ts", + "jest.config.js", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + ], "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"] } diff --git a/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template b/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template index c0b1d9caa18178..3275da080292d2 100644 --- a/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template +++ b/packages/expo/src/generators/library/files/lib/tsconfig.lib.json.template @@ -4,6 +4,17 @@ "outDir": "<%= offsetFromRoot %>dist/out-tsc", "types": ["node"] }, - "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "jest.config.ts", + "jest.config.js", + "**/*.test.ts", + "**/*.spec.ts", + "**/*.test.tsx", + "**/*.spec.tsx", + "**/*.test.js", + "**/*.spec.js", + "**/*.test.jsx", + "**/*.spec.jsx", + ], "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] } diff --git a/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template b/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template index 7b33f4033a0e31..5a9484c297a80d 100644 --- a/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template +++ b/packages/react-native/src/generators/application/files/app/tsconfig.app.json.template @@ -5,6 +5,15 @@ "types": ["node"] }, "files": ["<%= offsetFromRoot %>node_modules/@nx/react-native/typings/svg.d.ts"], - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "src/test-setup.ts"], + "exclude": [ + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"] } diff --git a/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template b/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template index 46ea2879e7c5f3..86ee61cc00a77f 100644 --- a/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template +++ b/packages/react-native/src/generators/library/files/lib/tsconfig.lib.json.template @@ -4,6 +4,15 @@ "outDir": "<%= offsetFromRoot %>dist/out-tsc", "types": ["node"] }, - "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx", "src/**/*.test.ts", "src/**/*.test.tsx", "src/test-setup.ts"], + "exclude": [ + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + ], "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] }