Skip to content

Conversation

@satya164
Copy link
Member

@satya164 satya164 commented Nov 12, 2025

CleanShot 2025-11-12 at 16 43 00@2x

Note

Adds a --tools flag and interactive multiselect to scaffold chosen tooling (eslint, jest, release-it, lefthook) and applies corresponding template/CI/config changes.

  • CLI & Input:
    • Add --tools arg and interactive multiselect to choose tools from AVAILABLE_TOOLS.
    • Enhance prompt validation to support multiselect choices.
  • Scaffolding/Config:
    • Introduce configureTools to merge tool configs into package.json, apply tool templates, and always include turbo (skipped for Expo via condition).
    • Pass selected tools through TemplateConfiguration; export applyTemplate for reuse.
  • Templates:
    • Common package.json: remove hardcoded test, lint, release and related configs; keep typecheck only.
    • Add tool templates:
      • eslint: flat config and prettier setup.
      • jest: basic test preset and sample test.
      • lefthook: hooks with conditional lint step; commitlint config.
      • turborepo: turbo.json for Android/iOS build caching.
    • CONTRIBUTING.md and CI workflow snippets now conditionally document/run lint/tests based on selected tools.
  • Workflows:
    • Build workflow passes --tools eslint lefthook release-it jest when creating test libraries.
    • Template CI: add coverage to test step; conditionally run yarn lint.

Written by Cursor Bugbot for commit b9f57fc. This will update automatically on new commits. Configure here.

@satya164 satya164 force-pushed the @satya164/configure-tools branch from 176a363 to 1afac4d Compare November 12, 2025 15:46
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@satya164 satya164 force-pushed the @satya164/configure-tools branch from 1afac4d to b9f57fc Compare November 12, 2025 15:54
},
repo: answers.repoUrl,
example: answers.example,
tools: answers.tools,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Undefined Tools Break Configuration Templates

When creating a local library, answers.tools is undefined because the tools question is skipped (type is null when local is true). This undefined value gets assigned to config.tools and causes runtime errors in EJS templates that call tools.includes() method, since undefined doesn't have an includes method. The field should default to an empty array when undefined.

Fix in Cursor Fix in Web

@satya164 satya164 merged commit 4a8f860 into main Nov 12, 2025
14 checks passed
@satya164 satya164 deleted the @satya164/configure-tools branch November 12, 2025 16:03
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