Skip to content

Commit

Permalink
remove directory check
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz committed Sep 27, 2023
1 parent 7d4c04f commit ee315a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli-tools/src/cacheManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ function saveCache(name: string, cache: Cache) {
const fullPath = path.resolve(getCacheRootPath(), name);

const dir = path.dirname(fullPath);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}
fs.mkdirSync(dir, {recursive: true});
fs.writeFileSync(fullPath, JSON.stringify(cache, null, 2));
}

Expand Down

0 comments on commit ee315a1

Please sign in to comment.