# baldrick-dev-ts

> CLI for TypeScript package development

Latest version **1.0.0** (published 2025-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install baldrick-dev-ts
pnpm add baldrick-dev-ts
yarn add baldrick-dev-ts
bun add baldrick-dev-ts
```

Provides the commands `baldrick`, `baldrick-dev-ts`.

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2025-09-20 |
| First published | 2021-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 23 |
| Unpacked size | 126.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Olivier Huin |
| Maintainers | olih |
| Keywords | cli, markdown, release |

## Links

- npm: https://www.npmjs.com/package/baldrick-dev-ts
- Repository: https://github.com/flarebyte/baldrick-dev-ts
- Issues: https://github.com/flarebyte/baldrick-dev-ts/issues
- npm.io page: https://npm.io/package/baldrick-dev-ts

## Dependencies (23)

- [diff](https://npm.io/package/diff.md) ^8.0.2
- [execa](https://npm.io/package/execa.md) ^9.6.0
- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^11.3.2
- [prettier](https://npm.io/package/prettier.md) ^3.6.2
- [commander](https://npm.io/package/commander.md) ^14.0.1
- [tiny-glob](https://npm.io/package/tiny-glob.md) ^0.2.9
- [remark-cli](https://npm.io/package/remark-cli.md) ^12.0.1
- [remark-gfm](https://npm.io/package/remark-gfm.md) ^4.0.1
- [vfile-reporter](https://npm.io/package/vfile-reporter.md) ^8.1.1
- [vfile-reporter-json](https://npm.io/package/vfile-reporter-json.md) ^4.0.0
- [baldrick-tsconfig-es2024](https://npm.io/package/baldrick-tsconfig-es2024.md) *
- [remark-lint-strong-marker](https://npm.io/package/remark-lint-strong-marker.md) ^4.0.1
- [remark-lint-emphasis-marker](https://npm.io/package/remark-lint-emphasis-marker.md) ^4.0.1
- [remark-lint-list-item-indent](https://npm.io/package/remark-lint-list-item-indent.md) ^4.0.1
- [remark-lint-list-item-spacing](https://npm.io/package/remark-lint-list-item-spacing.md) ^5.0.1
- [remark-preset-lint-consistent](https://npm.io/package/remark-preset-lint-consistent.md) ^6.0.1
- [remark-preset-lint-recommended](https://npm.io/package/remark-preset-lint-recommended.md) ^7.0.1
- [remark-lint-maximum-line-length](https://npm.io/package/remark-lint-maximum-line-length.md) ^4.1.1
- [remark-lint-maximum-heading-length](https://npm.io/package/remark-lint-maximum-heading-length.md) ^4.1.1
- [remark-lint-ordered-list-marker-style](https://npm.io/package/remark-lint-ordered-list-marker-style.md) ^4.0.1
- [remark-lint-ordered-list-marker-value](https://npm.io/package/remark-lint-ordered-list-marker-value.md) ^4.0.1
- [remark-lint-unordered-list-marker-style](https://npm.io/package/remark-lint-unordered-list-marker-style.md) ^4.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2025-09-20
- 0.17.0 — 2022-08-15
- 0.16.0 — 2022-08-08
- 0.15.0 — 2022-01-19
- 0.14.0 — 2022-01-17
- 0.13.0 — 2022-01-15
- 0.12.0 — 2022-01-15
- 0.11.0 — 2022-01-14
- 0.10.0 — 2022-01-12
- 0.9.0 — 2022-01-10
- 0.8.5 — 2021-12-24
- 0.8.0 — 2021-12-10

## README

# Baldrick-dev-ts

![npm](https://img.shields.io/npm/v/baldrick-dev-ts) ![Build status](https://github.com/flarebyte/baldrick-dev-ts/actions/workflows/main.yml/badge.svg)
![npm bundle size](https://img.shields.io/bundlephobia/min/baldrick-dev-ts)

![npm type definitions](https://img.shields.io/npm/types/baldrick-dev-ts)
![node-current](https://img.shields.io/node/v/baldrick-dev-ts)
![NPM](https://img.shields.io/npm/l/baldrick-dev-ts)

> CLI utilities to help with Markdown hygiene and release checks for TypeScript packages (ESM).

![Hero image for baldrick-dev-ts](baldrick-dev-ts-hero-512.jpeg)

The current scope is intentionally small and focused to reduce setup time and dev-dependencies.

- TypeScript (ESM) friendly
- Markdown checks and formatting (remark + Prettier-based normalisation)
- Release checks and publishing helper
- Minimal config; tools invoked via `npx`
- Requires Node.js >= 22

## Why this exists

Most projects only need a thin layer of polish and safety around docs and releases. This CLI keeps the toolchain tiny by:

- Focusing on the high‑value parts (Markdown + release checks).
- Using `npx` to run heavy tools on demand (no permanent dev-deps).
- Working out of the box with sensible defaults for ESM/TypeScript repos.

If you need full linting/testing stacks, use dedicated tools; this CLI won’t get in your way.

## Quickstart

1) Prerequisite: Node.js 22+

2) Check your Markdown

```bash
npx baldrick-dev-ts markdown check --with-path-starting .
```

3) Fix formatting (wrap lines, bullet style, etc.)

```bash
npx baldrick-dev-ts markdown fix --with-path-starting .
```

4) Sanity‑check your release (no publish)

```bash
npx baldrick-dev-ts release check
```

## Usage

Markdown: check and fix

```bash
# Check markdown under current repository (default extension .md)
npx baldrick-dev-ts markdown check --with-path-starting .

# Check markdown in .github/ only
npx baldrick-dev-ts markdown check --with-path-starting .github/

# Fix markdown formatting and line wrapping in-place
npx baldrick-dev-ts markdown fix --with-path-starting .
```

Release: dry-run check

```bash
# Check if the current version can be published (no publishing happens)
npx baldrick-dev-ts release check
```

Deprecated commands

- `lint` and `test` subcommands are no longer supported and only print a deprecation notice.

## Acknowledgements

`baldrick-dev-ts` was initially created as a fork of the brilliant
[tsdx](https://github.com/jaredpalmer/tsdx) project.
Eventually, the code has been massively refactored to match the new
requirements, and very little remain of the `tsdx` starting point, except our
gratitude to this initial project.

## Documentation and links

-   [Code Maintenance](MAINTENANCE.md)
-   [Code Of Conduct](CODE_OF_CONDUCT.md)
-   [Api for baldrick-dev-ts](API.md)
-   [Contributing](CONTRIBUTING.md)
-   [Glossary](GLOSSARY.md)
-   [Diagram for the code base](INTERNAL.md)
-   [Vocabulary used in the code base](CODE_VOCABULARY.md)
-   [Architectural Decision Records](DECISIONS.md)
-   [Contributors](https://github.com/flarebyte/baldrick-dev-ts/graphs/contributors)
-   [Dependencies](https://github.com/flarebyte/baldrick-dev-ts/network/dependencies)

## Installation & running

This package is [ESM only](https://blog.sindresorhus.com/get-ready-for-esm-aa53530b3f77).

Run without installing globally:

```bash
npx baldrick-dev-ts --help
```

Or install locally in your project and add scripts:

```bash
yarn add -D baldrick-dev-ts
yarn baldrick-dev-ts --help
```

## Development

- Build: `yarn build`
- Lint: `yarn lint` (Biome via `npx @biomejs/biome@latest`)
- Unit tests: `yarn test:ci` (Node.js test runner)
- Coverage: `yarn test:cov` (via `npx c8@latest`)
- CLI smoke tests: `yarn test:pest` (baldrick-pest specs in `pest-spec/`)

---
_Source: https://npm.io/package/baldrick-dev-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
