Skip to content

Commit 6ee6384

Browse files
committed
refactor: use fs.mkdir instead of mkdirp
1 parent 2a913fc commit 6ee6384

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
import fsp from "node:fs/promises";
2-
import { promisify } from "node:util";
32
import { readdirSync, statSync } from "node:fs";
43
import { dirname, resolve } from "pathe";
5-
import mkdirp from "mkdirp";
64
import jiti from "jiti";
75
import consola from "consola";
86
import type { PackageJson } from "pkg-types";
97
import { autoPreset } from "./auto";
108
import type { BuildPreset, BuildConfig, BuildContext } from "./types";
119

1210
export async function ensuredir(path: string) {
13-
await mkdirp(dirname(path));
11+
await fsp.mkdir(dirname(path), { recursive: true });
1412
}
1513

1614
export function warn(ctx: BuildContext, message: string) {

0 commit comments

Comments
 (0)