• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / sindri-ts / 27894146899
100%

Build:
DEFAULT BRANCH: 26.x
Ran 21 Jun 2026 05:01AM UTC
Jobs 1
Files 45
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Jun 2026 05:00AM UTC coverage: 100.0%. Remained the same
27894146899

push

github

web-flow
[Sindri] Add a runnable CLI for data generation (#29)

# Description

Adds a working CLI entrypoint to Sindri so it can be run as a standalone
binary for data generation, mirroring PHP's `vendor/bin/sindri` and
Java's runnable jar.

Node refuses to strip types from `node_modules`, so the existing
ecosystem (including the app's own `bin/cli.ts`) doesn't run outside
Vitest. The CLI is therefore a self-contained esbuild bundle with
`valkyrja` inlined, which works because Sindri only file-reads the
target app via `ts-morph` — it never imports it. CJS (`.cjs`) is used
because an ESM bundle fails on `ts-morph`'s dynamic `require('fs')`.

---

## Types of Changes

- [x] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [x] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

---

## Changes

- **`bin/sindri.ts`** — new CLI entrypoint; parses `generate <config>`
from `argv`, builds a `Cli` route carrying the config path, and runs
`GenerateDataFromConfigCommand`
- **`package.json`** — added `bin → dist/bin/sindri.cjs`; added `build`
(esbuild bundle) and `prepublishOnly` scripts; added `esbuild` as a dev
dependency
- **`tsconfig.json`** — added `bin/**/*` to `includes` so the entrypoint
is type-checked

> `dist/` stays gitignored and is built on publish. The `bin` is outside
the `src/**` coverage scope, consistent with other repos' entrypoints.

693 of 693 branches covered (100.0%)

Branch coverage included in aggregate %.

1128 of 1128 relevant lines covered (100.0%)

10.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27894146899.1 21 Jun 2026 05:01AM UTC 45
100.0
GitHub Action Run
Source Files on build 27894146899
  • Tree
  • List 45
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27894146899
  • b631e715 on github
  • Prev Build on 26.x (#27881086382)
  • Next Build on 26.x (#27894710868)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc