Skip to content

Commit

Permalink
chore: fix dev tools fs-extra utils
Browse files Browse the repository at this point in the history
- the function `outputFileSync()` wasn't working correctly
  • Loading branch information
ghiscoding committed Nov 15, 2024
1 parent 4b7a777 commit 45ce3d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/fs-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 45ce3d1

Please sign in to comment.