fix(core): store command runs in the correct cache directory (#17732)
This commit is contained in:
parent
6cb159e9f7
commit
f176f213fb
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user