Skip to content

Commit 1053a45

Browse files
committed
cp dines
1 parent f441f04 commit 1053a45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Conf from "conf";
22
import { homedir } from "os";
33
import { join } from "path";
4-
import { existsSync, statSync } from "fs";
4+
import { existsSync, statSync, mkdirSync, writeFileSync } from "fs";
55

66
interface Config {
77
apiKey?: string;
@@ -65,9 +65,9 @@ export function updateCheckCache(): void {
6565

6666
// Create cache directory if it doesn't exist
6767
if (!existsSync(cacheDir)) {
68-
require("fs").mkdirSync(cacheDir, { recursive: true });
68+
mkdirSync(cacheDir, { recursive: true });
6969
}
7070

7171
// Touch the cache file
72-
require("fs").writeFileSync(cacheFile, "");
72+
writeFileSync(cacheFile, "");
7373
}

0 commit comments

Comments
 (0)