From 11134e365e702d7410e9f4f18bcaf3162dcb53a6 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 19 Jul 2023 23:26:43 +0800 Subject: [PATCH] fix: npm run start bug when `extensions` not exist --- scripts/start.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/start.mjs b/scripts/start.mjs index 561a298..d795ce6 100644 --- a/scripts/start.mjs +++ b/scripts/start.mjs @@ -36,6 +36,12 @@ if (existsSync(profilePath)) { writeAddonProxyFile(); } } else { + if ( + existsSync(profilePath) && + !existsSync(path.join(profilePath, "extensions")) + ) { + mkdirSync(path.join(profilePath, "extensions")); + } writeAddonProxyFile(); }