Skip to content

fix: rename duplicate hasForce declaration blocking all releases - #1028

Merged
bradygaster merged 1 commit into
mainfrom
fix/hasforce-duplicate-declaration
Apr 22, 2026
Merged

bradygaster merged 1 commit into
mainfrom
fix/hasforce-duplicate-declaration

Conversation

@tamirdresher

Copy link
Copy Markdown
Collaborator

Problem

Every release run on main fails with a SyntaxError: duplicate const hasForce declaration in index.cjs (lines 1130 and 1192). The esbuild bundler flattened two separate function scopes into one, creating the conflict. 90/130 tests fail because index.cjs can't load at all.

This has been blocking every single release - v0.9.4 hasn't made it to npm latest.

Fix

Renamed the second hasForce (line 1192) to shouldForce. They serve different purposes:

  • Line 1130: CLI arg check (process.argv.includes('--force'))
  • Line 1192: parameter check in skills import function

Impact

Once merged, the release pipeline should pass and publish v0.9.4 to npm.

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>
@bradygaster
bradygaster merged commit 22d46c9 into main Apr 22, 2026
11 of 12 checks passed
@bradygaster
bradygaster deleted the fix/hasforce-duplicate-declaration branch August 8, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants