@bensandee/tooling 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { t as isExecSyncError } from "../exec-CC49vrkM.mjs";
2
- import { execSync } from "node:child_process";
3
2
  import { z } from "zod";
3
+ import { execSync } from "node:child_process";
4
4
  //#region src/docker-verify/executor.ts
5
5
  /** Create an executor that runs real commands, fetches, and manages process signals. */
6
6
  function createRealExecutor() {
package/dist/index.d.mts CHANGED
@@ -45,8 +45,6 @@ interface ProjectConfig {
45
45
  projectType: "default" | "node" | "react" | "library";
46
46
  /** Auto-detect and configure tsconfig bases for monorepo packages */
47
47
  detectPackageTypes: boolean;
48
- /** Set up Docker image build/tag/push via docker:publish */
49
- setupDocker: boolean;
50
48
  /** Target directory (default: cwd) */
51
49
  targetDir: string;
52
50
  }
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@bensandee/tooling",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "CLI tool to bootstrap and maintain standardized TypeScript project tooling",
5
5
  "bin": {
6
6
  "tooling": "./dist/bin.mjs"
7
7
  },
8
8
  "files": [
9
- "dist",
10
- "CHANGELOG.md"
9
+ "dist"
11
10
  ],
12
11
  "type": "module",
13
12
  "imports": {
@@ -42,7 +41,7 @@
42
41
  "tsdown": "0.21.2",
43
42
  "typescript": "5.9.3",
44
43
  "vitest": "4.0.18",
45
- "@bensandee/config": "0.8.1"
44
+ "@bensandee/config": "0.8.2"
46
45
  },
47
46
  "optionalDependencies": {
48
47
  "@changesets/cli": "^2.29.4",
package/CHANGELOG.md DELETED
@@ -1,236 +0,0 @@
1
- # @bensandee/tooling
2
-
3
- ## 0.15.0
4
-
5
- ### Minor Changes
6
-
7
- - 2ef37e2: Add `docker:build` and `docker:publish` CLI commands. Packages declare a `docker` field in their `package.json` with `dockerfile` and `context`, and the tooling handles `docker build` with the correct image name (`{repo}-{package}`). `docker:build --package .` enables a per-package `image:build` script for local testing. `docker:publish` builds all images, then tags/pushes them with semver variants (latest, vX.Y.Z, vX.Y, vX) from each package's own version. Also adds a deploy workflow generator (`setupDocker` config option) that emits a CI workflow triggered on version tags.
8
- - c09d233: Combine CI and release workflows for changesets strategy into a single check.yml with release job gated on check success
9
-
10
- ### Patch Changes
11
-
12
- - 6cae944: Prompt to overwrite outdated release workflows during repo:update instead of only merging missing steps
13
-
14
- ## 0.14.1
15
-
16
- ### Patch Changes
17
-
18
- - caeebd8: Add d.ts declaration file output and types export conditions
19
- - caeebd8: Bump tsdown from 0.21.0 to 0.21.2
20
- - Updated dependencies [caeebd8]
21
- - Updated dependencies [caeebd8]
22
- - @bensandee/common@0.1.2
23
-
24
- ## 0.14.0
25
-
26
- ### Minor Changes
27
-
28
- - e95d449: Add `--fail-fast` / `--no-fail-fast` flag to `checks:run` to control whether execution stops on the first failure. Defaults to fail-fast in dev and continue-on-error in CI.
29
- - 715a4ea: Add `@bensandee/tooling/docker-verify` subpath export: a TypeScript framework for Docker image verification with compose lifecycle management, HTTP health polling, container health monitoring, and signal-safe cleanup. Consumers import building blocks and compose them with custom validators instead of writing boilerplate.
30
- - 27c3480: Add `release:simple` command and rename CLI subcommands
31
-
32
- **Breaking changes:**
33
-
34
- - `release:create-forgejo-release` renamed to `forgejo:create-release`
35
- - `release:merge` renamed to `changesets:merge`
36
- - `releaseStrategy: "commit-and-tag-version"` renamed to `"simple"` in `.tooling.json` config
37
- - Generated CI workflow for commit-and-tag-version now uses `pnpm exec tooling release:simple` instead of inline shell commands
38
-
39
- **New feature:**
40
-
41
- `release:simple` — a CLI command that handles the full release lifecycle for projects using commit-and-tag-version:
42
-
43
- - Runs `commit-and-tag-version` to bump version, update CHANGELOG, and create a git tag
44
- - Pushes to origin with `--follow-tags`
45
- - Creates sliding version tags (vX, vX.Y) for flexible deployment pinning
46
- - Creates Forgejo or GitHub releases automatically
47
-
48
- ### Patch Changes
49
-
50
- - 715a4ea: Add README files to all published packages for npm registry documentation
51
- - 27c3480: Pre-populate `repo:init` prompts from saved `.tooling.json` config
52
-
53
- When re-running `repo:init` on a project with an existing `.tooling.json`, each prompt now defaults to the previously saved choice instead of the detection-based default. Press Enter to keep existing settings or change only what you need.
54
-
55
- - d448ec6: Update node tsconfig base to use `nodenext` module resolution with `allowImportingTsExtensions`, enabling `.ts` extensions in imports for projects running TypeScript natively on Node 24+. Migrate all tooling-cli imports to use `.ts` extensions and switch `#src` subpath mapping to `#src/*.ts`. Use extensionless imports for library packages.
56
- - c49593f: Add `commit-and-tag-version` and `@changesets/cli` as optional dependencies
57
-
58
- These tools are only needed when using their respective release strategies, so they're optional rather than required. Target projects already install them as devDependencies via the package-json generator.
59
-
60
- - Updated dependencies [715a4ea]
61
- - Updated dependencies [d448ec6]
62
- - @bensandee/common@0.1.1
63
-
64
- ## 0.13.0
65
-
66
- ### Minor Changes
67
-
68
- - bbe3634: Add `checks:run` command (renamed from `repo:run-checks`). Add `ci:check`, `tooling:check`, and `tooling:update` as generated package.json scripts. CI workflows now run `pnpm ci:check`. Managed scripts are updated on `repo:update`/`repo:check` if they don't reference the expected command.
69
-
70
- ### Patch Changes
71
-
72
- - f20b25d: `checks:run` now reads package.json to detect which scripts are defined. Undefined scripts show "(not defined)" instead of silently passing. Commands use `pnpm run` instead of `pnpm run --if-present`.
73
-
74
- ## 0.12.0
75
-
76
- ### Minor Changes
77
-
78
- - 5de6090: Add `repo:run-checks` command that runs all standard checks (build, typecheck, lint, test, format, knip, tooling:check, image:check) without short-circuiting, reporting a summary of failures at the end. Supports `--skip` to skip specific checks and `--add` to append custom checks. Generated CI workflows now use `pnpm check`, and the package.json generator produces `check` and `tooling:check` scripts pointing to this command. Managed scripts (`check`, `tooling:check`) are updated on `repo:update`/`repo:check` if they don't already reference the expected command.
79
-
80
- ## 0.11.0
81
-
82
- ### Minor Changes
83
-
84
- - 493ae65: Add `repo:run-checks` command that runs all standard checks (build, typecheck, lint, test, format, knip, repo:check) without short-circuiting, reporting a summary of failures at the end. Generated CI workflows and package.json `check` scripts now use this command. Skip `trigger-release` script for changesets release strategy.
85
-
86
- ### Patch Changes
87
-
88
- - ae18571: Add .pnpm-store to gitignore file
89
- - 916c1ee: Ensure `yaml-language-server` schema comment is added to existing Forgejo workflow files during update/merge
90
-
91
- ## 0.10.1
92
-
93
- ### Patch Changes
94
-
95
- - f131a3d: Add `pnpm why` to the allowed Bash commands in generated Claude settings
96
- - 1cb2ce8: Add yaml-language-server schema comments to generated Forgejo workflow files and update schema glob to match both .yml and .yaml extensions
97
-
98
- ## 0.10.0
99
-
100
- ### Minor Changes
101
-
102
- - 34a0e1e: feat: merge missing config into existing lefthook and CI workflow files instead of skipping
103
-
104
- Generators for `lefthook.yml`, CI check workflows, and release workflows now merge required
105
- entries into existing files rather than silently skipping them. This means `repo:update` can
106
- add new steps (e.g. a newly required CI check) to repos that were initialized before the step
107
- existed.
108
-
109
- Add `# @bensandee/tooling:ignore` in the first 10 lines of any YAML file to opt out of
110
- automatic merging.
111
-
112
- ### Patch Changes
113
-
114
- - 330cc2c: fix: use semantic JSON comparison in repo:check and repo:update to ignore formatting-only differences
115
-
116
- ## 0.9.0
117
-
118
- ### Minor Changes
119
-
120
- - 88f2a93: Require `.tooling.json` for `repo:update` and `repo:check` commands. Previously these commands would warn and continue with detected defaults when `.tooling.json` was missing, which could cause unexpected overwrites without proper archiving. Now they exit with an error directing the user to run `tooling repo:init` first.
121
-
122
- Write Forgejo workflow schema mapping to `.code-workspace` file when present, falling back to `.vscode/settings.json`. The `yaml.schemas` setting in `.vscode/settings.json` doesn't apply in VS Code multi-root workspaces.
123
-
124
- Improve post-init guidance: suggest a Claude Code prompt ("Execute the steps in .tooling-migrate.md") instead of "paste contents".
125
-
126
- ## 0.8.1
127
-
128
- ### Patch Changes
129
-
130
- - efcfdcc: Fix findOpenPr to filter PRs client-side by head.ref instead of relying on Forgejo's inconsistent head query parameter, which could match the wrong PR
131
- - 88aac23: Add forgejo workflow schema additions
132
- - e4c41d6: Fix wrong agent name in settings.json for claude
133
- - 43509b8: Pin @bensandee/\* package versions in generated package.json instead of using "latest". Versions are read from sibling package.json files at build time via tsdown's define feature, so they auto-update with each release.
134
- - 5e65e50: enhance ciWorkflow to support Forgejo email notifications
135
- - 60a5502: refactor generateClaudeSettings to handle monorepo structure and update tests for plugin integration
136
-
137
- ## 0.8.0
138
-
139
- ### Minor Changes
140
-
141
- - 375f7fd: Add claude skills to settings.json
142
-
143
- ### Patch Changes
144
-
145
- - 375098b: Add more safety restrictions to settings.json
146
- - b330adf: Fix bad update to tsconfig when not needed
147
-
148
- ## 0.7.3
149
-
150
- ### Patch Changes
151
-
152
- - 3257e04: Fix no-unsafe-json-parse rule and fix new lint errors
153
- - ca61fa7: Don't overwrite existing oxfmt config
154
- - 1bdf858: More intelligent addition of src folder to tsconfig
155
- - 8de49b9: Add line about adding packages when necessary to resolve errors
156
-
157
- ## 0.7.2
158
-
159
- ### Patch Changes
160
-
161
- - e48bc27: Fix bug where tsconfigs in packages would be force-updated even if solutions-style
162
-
163
- ## 0.7.1
164
-
165
- ### Patch Changes
166
-
167
- - 6ef4ea9: Fix tsconfig build/update issues
168
- - 3608a1a: Run pnpm update after repo:update
169
-
170
- ## 0.7.0
171
-
172
- ### Minor Changes
173
-
174
- - 912013d: Add repo:check command
175
- - 2545262: Add common package + error subclasses
176
-
177
- ### Patch Changes
178
-
179
- - Updated dependencies [2545262]
180
- - @bensandee/common@0.1.0
181
-
182
- ## 0.6.2
183
-
184
- ### Patch Changes
185
-
186
- - caa1270: Fix hang migrating repo:init
187
-
188
- ## 0.6.1
189
-
190
- ### Patch Changes
191
-
192
- - 2182ab3: fix bug where renovate.json5 wasn't cleaned up to use our preset
193
- - d811a96: Lefthook doesn't need an install step in package.json prepare
194
-
195
- ## 0.6.0
196
-
197
- ### Minor Changes
198
-
199
- - 94cd161: Updated default oxlint config to include more default rules.
200
-
201
- ## 0.5.1
202
-
203
- ### Patch Changes
204
-
205
- - e0bc32e: Improve migration for tsconfig and husky/lint-staged
206
- - 02c1a1b: Include version when running tooling cli
207
-
208
- ## 0.5.0
209
-
210
- ### Minor Changes
211
-
212
- - 58fc8a3: Add lefthook support in place of husky, lint-staged
213
-
214
- ## 0.4.0
215
-
216
- ### Minor Changes
217
-
218
- - e02953a: Bug fixing, move renovate config to standard location
219
- - 451908d: Restructure package names and exports.
220
-
221
- ## 0.3.0
222
-
223
- ### Minor Changes
224
-
225
- - 5e9719f: Many bug fixes
226
-
227
- ## 0.2.0
228
-
229
- ### Minor Changes
230
-
231
- - c376981: Initial release
232
-
233
- ### Patch Changes
234
-
235
- - 3fc9fe3: Support multiple release architectures (release-it, commit-and-tag-version and changsets)
236
- - 4004530: Add release-forgejo command to perform final steps of release creation in forgejo.