File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ import type Config from "../../config.js";
14
14
import { MessageError } from "../../errors.js" ;
15
15
import * as fs from "../../util/fs.js" ;
16
16
17
- let path = require ( "path" ) ;
18
-
19
17
export function setFlags ( commander : Object ) {
20
18
commander . usage ( "cache [clear | ls]" ) ;
21
19
}
@@ -39,7 +37,7 @@ export async function run(
39
37
throw new MessageError ( "TODO" ) ;
40
38
}
41
39
42
- if ( cmd === "clear" ) {
40
+ if ( cmd === "clear" && config . packagesRoot ) {
43
41
await fs . unlink ( config . packagesRoot ) ;
44
42
reporter . success ( `Cleared ${ config . packagesRoot } ` ) ;
45
43
}
Original file line number Diff line number Diff line change 13
13
import * as constants from "../constants.js" ;
14
14
import BlockingQueue from "./blocking-queue.js" ;
15
15
import { promisify } from "./promise.js" ;
16
+ import { MessageError } from "../errors.js" ;
16
17
17
18
let child = require ( "child_process" ) ;
18
19
You can’t perform that action at this time.
0 commit comments