From 27c8cb81f584acc3da651132a2bd9de0bffb4376 Mon Sep 17 00:00:00 2001 From: Copilot Date: Wed, 22 Apr 2026 22:39:46 +0300 Subject: [PATCH] fix: rename duplicate hasForce declaration in bundled index.cjs The esbuild bundler flattened two separate function scopes into one, creating two 'const hasForce' declarations (lines 1130 and 1192). This causes a SyntaxError on load, failing 90/130 tests and blocking every release run on main. Renamed the second declaration to 'shouldForce' to resolve the conflict. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- index.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.cjs b/index.cjs index fbdbafcb3..a2c1355ac 100644 --- a/index.cjs +++ b/index.cjs @@ -1189,10 +1189,10 @@ if (cmd === 'import') { : `skill-${index}`; return { skillContent, skillName }; }); - const hasForce = typeof force !== 'undefined' && force; + const shouldForce = typeof force !== 'undefined' && force; if (fs.existsSync(copilotSkillsImportDir)) { - if (hasForce) { + if (shouldForce) { const archivedSkillsDir = path.join(dest, '.copilot', `skills.backup.${Date.now()}`); fs.renameSync(copilotSkillsImportDir, archivedSkillsDir); } else {