Skip to content

fix: remove duplicate typecheck script, add ci/format:check, fix strategy numbering#24

Merged
leopechnicki merged 1 commit intomainfrom
crew/fix/package-scripts-and-strategy-comments
May 1, 2026
Merged

fix: remove duplicate typecheck script, add ci/format:check, fix strategy numbering#24
leopechnicki merged 1 commit intomainfrom
crew/fix/package-scripts-and-strategy-comments

Conversation

@leopechnicki
Copy link
Copy Markdown
Owner

Summary

  • package.json had a duplicate typecheck key — JSON silently drops the first occurrence, so the script was redundantly redefined with no clear intent. Removed the duplicate.
  • Added format:check (dry-run Prettier check) and ci (full gate: typecheck + lint + format:check + test + build) scripts, mirroring the conventions already established in im_robot.
  • src/detect.ts: corrected strategy numbering in comments — Go detection was labelled "Strategy 3b" instead of "Strategy 4", and the file-pattern fallback was "Strategy 4" instead of "Strategy 5". The JSDoc comment in detectFramework was updated to match.

Changes

File Change
package.json Remove duplicate typecheck key; add format:check and ci scripts
src/detect.ts Fix strategy numbering: 3b→4, 4→5; update JSDoc

Testing done

  • No logic was changed — all existing tests continue to pass unchanged.
  • npm run ci now exists and can be wired into GitHub Actions.

Risk assessment

Low. Pure housekeeping: a JSON key deduplication and comment corrections. No runtime behaviour changes.


Generated by Crew — Leo's Agile Dev Team


Generated by Claude Code

…tegy numbering

- package.json had two `typecheck` keys; JSON parsers silently drop the
  first, so `npm run typecheck` was effectively defined twice with no
  clear intent. Removed the duplicate.
- Added `format:check` (dry-run Prettier) and `ci` (typecheck + lint +
  format:check + test + build) scripts, mirroring the pattern in im_robot.
- detect.ts: corrected inline strategy numbering — Go detection was
  labelled "3b" instead of "4", and the fallback was "4" instead of "5".
@leopechnicki leopechnicki merged commit 8d705e3 into main May 1, 2026
3 checks passed
@leopechnicki leopechnicki deleted the crew/fix/package-scripts-and-strategy-comments branch May 1, 2026 10:04
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.

1 participant