From c88a616b3fdc9e809ac7edf9e10327aae8dd471a Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 5 Aug 2021 17:15:11 -0400 Subject: [PATCH] [scripts/build_ts_refs] when using `--clean` initialize caches (#107777) (#107803) Co-authored-by: spalger Co-authored-by: Spencer Co-authored-by: spalger --- src/dev/typescript/build_ts_refs_cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dev/typescript/build_ts_refs_cli.ts b/src/dev/typescript/build_ts_refs_cli.ts index 00f298887ee17..ad7807eb87c66 100644 --- a/src/dev/typescript/build_ts_refs_cli.ts +++ b/src/dev/typescript/build_ts_refs_cli.ts @@ -41,7 +41,7 @@ export async function runBuildRefsCli() { const cacheEnabled = process.env.BUILD_TS_REFS_CACHE_ENABLE !== 'false' && !!flags.cache; const doCapture = process.env.BUILD_TS_REFS_CACHE_CAPTURE === 'true'; const doClean = !!flags.clean || doCapture; - const doInitCache = cacheEnabled && !doClean; + const doInitCache = cacheEnabled && !doCapture; if (doClean) { log.info('deleting', outDirs.length, 'ts output directories');