Chore: clean up make-fetch-happen

This commit is contained in:
SukkaW
2025-01-17 20:47:16 +08:00
parent 9a4acbd3f1
commit 7d555d0ba9
4 changed files with 5 additions and 311 deletions

View File

@@ -28,7 +28,6 @@ import { buildCloudMounterRules } from './build-cloudmounter-rules';
import { createSpan, printTraceResult, whyIsNodeRunning } from './trace';
import { buildDeprecateFiles } from './build-deprecate-files';
import { cacheGc } from './lib/make-fetch-happen';
import path from 'node:path';
import { ROOT_DIR } from './constants/dir';
@@ -97,10 +96,8 @@ const buildFinishedLock = path.join(ROOT_DIR, '.BUILD_FINISHED');
downloadMockAssets(rootSpan)
]);
await Promise.all([
buildDeprecateFiles(rootSpan).then(() => buildPublic(rootSpan)),
cacheGc(rootSpan)
]);
await buildDeprecateFiles(rootSpan);
await buildPublic(rootSpan);
rootSpan.stop();