From 6ccf9aab1d2c89d05dce97051a2eca71b5d1145b Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Tue, 10 May 2022 20:57:48 +0800 Subject: [PATCH] feat(create-vite): supports nested directory (closes #6638) (#6739) --- 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 8310b8c0bddba2..981c7aa7f6fa2f 100755 --- a/packages/create-vite/index.js +++ b/packages/create-vite/index.js @@ -230,7 +230,7 @@ async function init() { if (overwrite) { emptyDir(root) } else if (!fs.existsSync(root)) { - fs.mkdirSync(root) + fs.mkdirSync(root, { recursive: true }) } // determine template