Skip to content

Commit

Permalink
Fix cache creation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev committed Nov 11, 2024
1 parent f81d0fb commit 3523c58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export type * from './files/types.js';
export type * from './status/types.js';
export type * from './config/types.js';

// TODO: Remove this comment
class Lunaria {
readonly config: LunariaConfig;
#git: LunariaGitInstance;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export async function createCache(dir: string, entry: string, hash: string) {
};

if (!(await exists(path))) {
mkdir(resolve(dir), { recursive: true });
await mkdir(resolve(dir), { recursive: true });
await write({ __validation: hash });
} else {
await revalidate(hash);
Expand Down

0 comments on commit 3523c58

Please sign in to comment.