fix(core): store command runs in the correct cache directory (#17732)

This commit is contained in:
Leosvel Pérez Espinosa 2023-06-22 23:05:19 +01:00 committed by GitHub
parent 6cb159e9f7
commit f176f213fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ import { writeFileSync } from 'fs';
import { LifeCycle } from '../../tasks-runner/life-cycle';
import { Task } from '../../config/task-graph';
import { TaskStatus } from '../../tasks-runner/tasks-runner';
import { projectGraphCacheDirectory } from '../../utils/cache-directory';
import { cacheDir } from '../../utils/cache-directory';
export class StoreRunInformationLifeCycle implements LifeCycle {
private startTime: string;
@ -106,7 +106,7 @@ function parseCommand() {
function storeFileFunction(runDetails: any) {
writeFileSync(
join(projectGraphCacheDirectory, 'run.json'),
join(cacheDir, 'run.json'),
JSON.stringify(runDetails, null, 2)
);
}