From dda502daecc94c51c1148c403a4c386a2317775a Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Wed, 29 May 2024 16:29:14 +0200 Subject: [PATCH] ci: improve just-scripts type checking speed (#31497) --- .devops/templates/build-test-lint.yml | 10 ++++++---- tsconfig.json => tsconfig.just-scripts-configs.json | 0 2 files changed, 6 insertions(+), 4 deletions(-) rename tsconfig.json => tsconfig.just-scripts-configs.json (100%) diff --git a/.devops/templates/build-test-lint.yml b/.devops/templates/build-test-lint.yml index 4a1e816b292c3..c9cb2156cfcfa 100644 --- a/.devops/templates/build-test-lint.yml +++ b/.devops/templates/build-test-lint.yml @@ -14,11 +14,13 @@ steps: displayName: Workspace lint - script: | - # @fluentui/api-docs is used within apps/public-docsite-resources/just.config.ts, thus it needs to be build in advance - yarn workspace @fluentui/api-docs build + # following packages need to be build in advance: + # @fluentui/api-docs is used within apps/public-docsite-resources/just.config.ts, # @fluentui/digest is used within packages/fluentui/perf-test-northstar/just.config.ts, thus it needs to be build in advance - yarn workspace @fluentui/digest build - yarn tsc -p ./tsconfig.json + # + # NOTE: we are running this via lage in order to get cache hits later on + yarn lage build --to @fluentui/api-docs @fluentui/digest --verbose + yarn tsc -p ./tsconfig.just-scripts-configs.json displayName: Type-check just.config.ts files - script: | diff --git a/tsconfig.json b/tsconfig.just-scripts-configs.json similarity index 100% rename from tsconfig.json rename to tsconfig.just-scripts-configs.json