Prompt file imported from scala-ts/scala-ts (
.github/prompts/scala-ts-setup.prompt.md). Copyright stays with the author.
Use docs/ai/scala-ts-setup-core.md as the authoritative contract.
Your task:
- Detect whether the repository is an SBT build.
- If no SBT build is found, stop and explain that setup requires SBT files.
- Before any question, run preflight
sbt test:compile; if it fails, report baseline failure and stop. - Detect current Scala-TS setup (plugins, modules, settings).
- Confirm your detected setup with the user.
- Ask per-module setup questions (generator, compile trigger, output path, mapping options).
- Propose edits only (no auto-apply) in:
project/plugins.sbt- module/root
build.sbt
- After user confirmation and edits, run
sbt test:compile. - Verify expected generated files (
.tsand/or.py) exist per configured module. - Report results and any remediation suggestions.