@cjournois/repo-toolkit-ts (0.2.0)
Published 2026-05-23 09:57:37 +00:00 by cjournois
Installation
@cjournois:registry=npm install @cjournois/repo-toolkit-ts@0.2.0"@cjournois/repo-toolkit-ts": "0.2.0"About this package
@cjournois/repo-toolkit-ts
TypeScript toolkit for validating repository automation configs, diffing desired vs local state, and (eventually) applying changes through Forgejo adapters. Ships the repo-toolkit CLI.
Licensed under AGPL-3.0.
Install
bun add -d @cjournois/repo-toolkit-ts
Or run without installing:
bunx @cjournois/repo-toolkit-ts validate
CLI
Global flags: -c, --config <path> (defaults to ./repo-toolkit.json), -s, --state <path> (defaults to .repo-toolkit/state.json).
| Command | Description |
|---|---|
repo-toolkit validate |
Load config, normalize repos, print names. |
repo-toolkit plan [--repo <name>] [--json] |
Show diffs between desired config and local fixture. |
repo-toolkit apply [--repo <name>] [--dry-run] [--json] |
Apply changes. Currently requires --dry-run until the Forgejo adapter is wired. |
Configuration
Config is JSON only. Create a repo-toolkit.json at the repo root:
{
"$schema": "./node_modules/@cjournois/repo-toolkit-ts/schema.json",
"extends": ["local>devops/config//repo-toolkit/organization"],
"repos": []
}
extends uses Renovate-style refs (local>owner/repo//path/to/file) resolved from the monorepo root.
Source
Repository: git.journois.com/cjournois/lib-repo-toolkit-ts
Dependencies
Dependencies
| ID | Version |
|---|---|
| commander | ^14.0.3 |
| zod | ^4.3.6 |
Development dependencies
| ID | Version |
|---|---|
| @cjournois/eslint-config-ts | 1.1.0 |
| @eslint/js | ^9.39.4 |
| @types/bun | 1.3.14 |
| eslint | ^9.39.4 |
| eslint-plugin-import | ^2.32.0 |
| globals | ^17.4.0 |
| tsdown | ^0.21.8 |
| typescript | ^5.6.2 |
| typescript-eslint | ^8.58.0 |
| zod-to-json-schema | ^3.24.5 |
Details
2026-05-23 09:57:37 +00:00
Assets (1)
Versions (2)
View all
npm
2
Corentin JOURNOIS
AGPL-3.0
latest
12 KiB
repo-toolkit-ts-0.2.0.tgz
12 KiB