From 3523c58d02b3d93a6670fe93d6085f6029a5a007 Mon Sep 17 00:00:00 2001 From: Yan <61414485+yanthomasdev@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:28:31 -0300 Subject: [PATCH] Fix cache creation issue --- packages/core/src/index.ts | 1 - packages/core/src/utils/utils.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index cac1a5f..dfe7887 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -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; diff --git a/packages/core/src/utils/utils.ts b/packages/core/src/utils/utils.ts index e98ce37..f41f89c 100644 --- a/packages/core/src/utils/utils.ts +++ b/packages/core/src/utils/utils.ts @@ -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);