template-git-repo 0.1.33 → 0.1.35
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.
- package/README.md +2 -2
- package/bin/template-git-repo.js +2 -2
- package/docs/ACTIONS.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ is overwritten without `--force`, and `--dry-run` prints the exact plan.
|
|
|
52
52
|
| `.github/workflows/auto-merge-claude.yml` | Auto-merges agent PRs once their checks pass |
|
|
53
53
|
| `.github/workflows/auto-merge-and-create-prs.yml` | Twice-daily sweep: merges green PRs, opens PRs for orphan branches |
|
|
54
54
|
| `.github/workflows/deploy-test-reports.yml` | Publishes the HTML test report to Cloudflare Workers |
|
|
55
|
-
|
|
|
55
|
+
| `.github/scripts/*.mjs` | The five helpers those workflows call |
|
|
56
56
|
| `turbo.json` | Pipeline whose task names the workflows use |
|
|
57
57
|
| `codecov.yml` | Per-package flags with `carryforward` |
|
|
58
58
|
| `README.md` | The badge block, between markers |
|
|
@@ -86,7 +86,7 @@ Run `bunx template-git-repo --help` for the rest.
|
|
|
86
86
|
|
|
87
87
|
## The parts worth knowing
|
|
88
88
|
|
|
89
|
-
**The test matrix is discovered, not written.**
|
|
89
|
+
**The test matrix is discovered, not written.** `.github/scripts/list-test-packages.mjs`
|
|
90
90
|
reads the `workspaces` globs and emits one matrix entry per package with a test
|
|
91
91
|
script. A hand-maintained matrix fails silently — a package added to the repo but
|
|
92
92
|
not to the matrix is never tested, and nothing goes red to say so.
|
package/bin/template-git-repo.js
CHANGED
|
@@ -31,7 +31,7 @@ Usage
|
|
|
31
31
|
|
|
32
32
|
What it writes
|
|
33
33
|
.github/workflows/ tests, npm publish, auto-merge, hosted test reports
|
|
34
|
-
scripts
|
|
34
|
+
.github/scripts/ the helpers those workflows call
|
|
35
35
|
turbo.json pipeline whose task names the workflows use
|
|
36
36
|
codecov.yml per-package flags with carryforward
|
|
37
37
|
README.md the badge block, between markers
|
|
@@ -159,7 +159,7 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
159
159
|
|
|
160
160
|
// ── Workflows, scripts, turbo.json, codecov.yml ───────────────────────────
|
|
161
161
|
if (!badgesOnly) {
|
|
162
|
-
const include = actionsOnly ? ['.github'
|
|
162
|
+
const include = actionsOnly ? ['.github'] : undefined;
|
|
163
163
|
const filePlan = planFiles({ context, force, include }).filter(
|
|
164
164
|
(entry) => !(skipTurbo && entry.path === 'turbo.json'),
|
|
165
165
|
);
|
package/docs/ACTIONS.md
CHANGED
|
@@ -37,7 +37,7 @@ Analytics, which tracks per-test run time and flakiness and comments failures on
|
|
|
37
37
|
the PR.
|
|
38
38
|
|
|
39
39
|
**The matrix is discovered, not written.** A `discover` job runs
|
|
40
|
-
|
|
40
|
+
`.github/scripts/list-test-packages.mjs`, which reads the `workspaces` globs from the root
|
|
41
41
|
`package.json` and emits one entry per package with a `test:coverage`, `test:ci`
|
|
42
42
|
or `test` script. A hand-maintained matrix fails silently — a package added to
|
|
43
43
|
the repo but not to the matrix is simply never tested, and nothing goes red to
|
|
@@ -91,16 +91,16 @@ Five rules are encoded in it, each learned from a specific failure:
|
|
|
91
91
|
it`, which reads like a missing package — and it arrives *after* every package
|
|
92
92
|
has been built, with a provenance statement already signed into the public
|
|
93
93
|
sigstore transparency log for each failed attempt.
|
|
94
|
-
3. **Walk the workspace in dependency order** (
|
|
94
|
+
3. **Walk the workspace in dependency order** (`.github/scripts/workspace-build-order.mjs`).
|
|
95
95
|
Package managers link workspace siblings as symlinks; a sibling that has not
|
|
96
96
|
been built has no `dist/`, and its `exports` → `types` entries point at files
|
|
97
97
|
that do not exist. Alphabetical order produces
|
|
98
98
|
`Cannot find module '<sibling>' or its corresponding type declarations`.
|
|
99
99
|
4. **Never publish the literal `workspace:*` protocol** — no consumer outside the
|
|
100
|
-
monorepo can resolve it.
|
|
101
|
-
ranges at pack time;
|
|
100
|
+
monorepo can resolve it. `.github/scripts/pin-workspace-deps.mjs` substitutes real
|
|
101
|
+
ranges at pack time; `.github/scripts/restore-pinned-deps.mjs` takes them back out
|
|
102
102
|
afterwards, so only the version bump gets committed.
|
|
103
|
-
5. **The registry decides which versions are spent** (
|
|
103
|
+
5. **The registry decides which versions are spent** (`.github/scripts/next-free-version.mjs`).
|
|
104
104
|
npm refuses a PUT for any version it has *ever* seen, including ones staged by
|
|
105
105
|
an interrupted publish that the `latest` dist-tag cannot show you:
|
|
106
106
|
`E409 ... Cannot publish over previously staged version`. The union of
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "template-git-repo",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "One command to set up a repo with GitHub Actions, README badges, Turborepo and Codecov — the CI setup from qwksearch-research-agent, as a template",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|