From 9e98f4df22221c8d8889130209f4c18002befe3e Mon Sep 17 00:00:00 2001 From: danjov Date: Mon, 25 Nov 2024 12:06:36 +0100 Subject: [PATCH] Create folder for https certs, if necessary --- src/ClientApp/aspnetcore-https.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ClientApp/aspnetcore-https.js b/src/ClientApp/aspnetcore-https.js index 2bde928..629ece4 100644 --- a/src/ClientApp/aspnetcore-https.js +++ b/src/ClientApp/aspnetcore-https.js @@ -8,6 +8,8 @@ const baseFolder = ? `${process.env.APPDATA}/ASP.NET/https` : `${process.env.HOME}/.aspnet/https`; +fs.mkdirSync(baseFolder, { recursive: true }); + const certificateArg = process.argv.map(arg => arg.match(/--name=(?.+)/i)).filter(Boolean)[0]; const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name;