From fe39896e708828aa77f71719874d9c15cc460e58 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Mon, 18 Nov 2024 14:39:13 +0000 Subject: [PATCH] =?UTF-8?q?Don't=20create=20project=20directory=20recursiv?= =?UTF-8?q?ely=E2=80=94ensures=20we=20fail=20if=20it=20exists?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0ddc869..fc36321 100644 --- a/src/index.ts +++ b/src/index.ts @@ -103,7 +103,7 @@ async function createServer(directory: string, options: any = {}) { try { // Create project directory - await fs.mkdir(directory, { recursive: true }); + await fs.mkdir(directory); // Copy template files const templateDir = path.join(__dirname, "../template");