From 70644200deb8791e8a0d884363350edc621743b2 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Thu, 3 Feb 2022 16:30:47 +0800 Subject: [PATCH] feat(create-vite): supports nested directory closes #6638 --- packages/create-vite/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-vite/index.js b/packages/create-vite/index.js index cc0a78639755bb..c008106ed73228 100755 --- a/packages/create-vite/index.js +++ b/packages/create-vite/index.js @@ -227,7 +227,7 @@ async function init() { if (overwrite) { emptyDir(root) } else if (!fs.existsSync(root)) { - fs.mkdirSync(root) + fs.mkdirSync(root, { recursive: true }) } // determine template