From 45ce3d153b432d558d4a98f7fe1d9fdbe4ae7eed Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Thu, 14 Nov 2024 21:59:54 -0500 Subject: [PATCH] chore: fix dev tools fs-extra utils - the function `outputFileSync()` wasn't working correctly --- scripts/fs-utils.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fs-utils.mjs b/scripts/fs-utils.mjs index d36bcf28..20e7b4e7 100644 --- a/scripts/fs-utils.mjs +++ b/scripts/fs-utils.mjs @@ -4,9 +4,10 @@ */ import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; +import { dirname } from 'node:path'; export function outputFileSync(file, ...args) { - const dir = path.dirname(file); + const dir = dirname(file); if (!existsSync(dir)) { mkdirSync(outDir, { recursive: true }); }