From 91376c685bca84ddf108830a1d1597a9f19bd591 Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Thu, 28 Nov 2024 17:49:56 +0000 Subject: [PATCH] Reduced tserrors on building storybook --- .github/workflows/pull-request.yml | 2 +- lib/process-services-cloud/.storybook/tsconfig.json | 4 +--- lib/stories/.storybook/tsconfig.json | 13 ++++++++++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 63191b9d904..bcdfe32d7e3 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -234,7 +234,7 @@ jobs: - uses: ./.github/actions/setup - uses: ./.github/actions/download-node-modules-and-artifacts - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx nx affected:build $NX_CALCULATION_FLAGS --prod - - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx nx affected --target=build-storybook $NX_CALCULATION_FLAGS --configuration=ci --parallel=1 + - run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 npx nx affected --target=build-storybook $NX_CALCULATION_FLAGS --configuration=ci - uses: ./.github/actions/upload-node-modules-and-artifacts PR-forbidden-labels: diff --git a/lib/process-services-cloud/.storybook/tsconfig.json b/lib/process-services-cloud/.storybook/tsconfig.json index 83c6a0ca455..8dd3f7d0034 100644 --- a/lib/process-services-cloud/.storybook/tsconfig.json +++ b/lib/process-services-cloud/.storybook/tsconfig.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.json", "compilerOptions": { "emitDecoratorMetadata": true - }, - - "exclude": ["../**/*.spec.ts" ], + "exclude": ["../**/*.spec.ts", "../**/*.mock.ts", "../**/test.ts", "../**/*.module.ts" ], "include": ["../src/**/*", "*.js"] } diff --git a/lib/stories/.storybook/tsconfig.json b/lib/stories/.storybook/tsconfig.json index 801c896d1a7..fe199022718 100644 --- a/lib/stories/.storybook/tsconfig.json +++ b/lib/stories/.storybook/tsconfig.json @@ -5,6 +5,17 @@ }, - "exclude": ["../**/*.spec.ts", "../../core/**/*.spec.ts", "../../content-services/**/*.spec.ts", "../../process-services-cloud/**/*.spec.ts" ], + "exclude": ["../**/*.spec.ts", + "../../core/**/*.spec.ts", + "../../core/**/mocks/**/*.ts", + "../../core/**/mock/**/*", + "../../core/feature-flags/**/*.ts", + "../../content-services/**/*.spec.ts", + "../../content-services/**/mock/**/*", + "../../content-services/**/mocks/**/*", + "../../process-services-cloud/**/*.spec.ts", + "../../process-services-cloud/**/mocks/**/*", + "../../process-services-cloud/**/mock/**/*" + ], "include": ["../src/**/*", "*.js", "../../core/**/*", "../../content-services/**/*", "../../process-services-cloud/**/*"] }