Skip to content

docs: retarget all install instructions to @deepl/cli and document Homebrew - #100

Merged
sjsyrek merged 1 commit into
mainfrom
docs/retarget-deepl-cli
Jul 28, 2026
Merged

docs: retarget all install instructions to @deepl/cli and document Homebrew#100
sjsyrek merged 1 commit into
mainfrom
docs/retarget-deepl-cli

Conversation

@sjsyrek

@sjsyrek sjsyrek commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Retargets every install instruction to the real published name and documents all three install paths (sync-8mqh.4). This is the last code change before the v2.0.0 tag: the only occurrence in source — a broken install string the CLI emits into generated git hooks — is fixed and pinned by a regression test.

Changes Made

  • src/services/git-hooks.ts — the pre-push template's install hint now names @deepl/cli. This is the site PR docs: stop instructing readers to npm install the unpublished package #70's docs fix missed, so users received a broken instruction from the CLI itself.
  • tests/unit/services/git-hooks.test.ts — new generated hook content block (TDD, red-then-green): for every hook type, generated output must never match install -g deepl-cli and any npm instruction must name @deepl/cli. This is the guard that would have caught docs: stop instructing readers to npm install the unpublished package #70's omission.
  • 9 documentation occurrences replaced across docs/SYNC.md (3), examples/31-sync-ci.sh (3), examples/18-cicd-integration.sh, examples/05-document-translation.sh, examples/README.md.
  • README installation section — now documents Homebrew (brew install deepl/tap/deepl, installs Node itself), npm (npm install -g @deepl/cli), and from-source, with an explicit Node.js 24 prerequisite. Deletes the better-sqlite3 native-compilation caveat (Xcode CLT / python3-make-gcc / windows-build-tools) and the stale "not yet published" npm section.
  • docs/TROUBLESHOOTING.md — the NODE_MODULE_VERSION / npm rebuild better-sqlite3 entry is replaced with accurate guidance for the one remaining cause of the same warning (running on Node < 24).
  • 6 stale DeepLcom URLsDeepL org (README badge + 2 clone URLs, CONTRIBUTING clone URL + issues link, TROUBLESHOOTING issues link).
  • CONTRIBUTING.md — development prerequisite is now Node >= 24.0.0 (was >= 20.0.0).
  • SECURITY.md — supported-versions table updated: 2.x supported; pre-2.0 versions were never published and are not supported.
  • CHANGELOG.md — entries under Unreleased, crediting @maa-xx (docs: stop instructing readers to npm install the unpublished package #70) for reporting the broken install instructions.
  • docs/API.md — audited, deliberately untouched: its remaining deepl-cli strings are config/cache filesystem paths (~/.deepl-cli/, $XDG_CONFIG_HOME/deepl-cli/), which are correct as-is. CLAUDE.md architecture lines were already updated by feat(cache)!: migrate from better-sqlite3 to node:sqlite; require Node 24 #96 (verified, not redone).

Test Coverage

New regression tests (4 — one per hook type) confirmed red against the old string, green after. Full suite: 236 suites / 5,540 tests pass on Node 24; lint and type-check clean. Acceptance greps: 0 hits for the unpublished install string anywhere (including CHANGELOG prose), 0 DeepLcom in tracked files.

Backward Compatibility

✅ Runtime behavior unchanged except one emitted string in generated hook output (the broken instruction becomes a working one).
✅ Config/cache paths (~/.deepl-cli/, XDG dirs) unchanged — deliberately not renamed.

Size: Medium ✓

Wide but shallow: one source line + its tests, the rest documentation.

🤖 Generated with Claude Code

…mebrew

Replace all 10 occurrences of the unpublished install string with
npm install -g @deepl/cli — including src/services/git-hooks.ts, the
one PR #70 missed, which the CLI emits into generated hook output. A
regression test now asserts generated hooks never reference an
unpublished package name.

README installation now documents Homebrew (brew install
deepl/tap/deepl), npm, and from-source, with a Node 24 prerequisite,
and drops the better-sqlite3 native-compilation caveat. The
TROUBLESHOOTING NODE_MODULE_VERSION entry is replaced with accurate
guidance for the remaining degradation cause (Node < 24). Six stale
DeepLcom URLs now point at the DeepL org. CONTRIBUTING gains the Node
24 prerequisite; SECURITY.md's supported-versions table reflects that
only 2.x is a published line.

Credit to @maa-xx (#70) for reporting the broken install instructions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@sjsyrek
sjsyrek merged commit fb2ca2d into main Jul 28, 2026
5 checks passed
@sjsyrek
sjsyrek deleted the docs/retarget-deepl-cli branch July 28, 2026 15:36
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