@mark1russell7/conventions 0.57.2 → 0.57.3

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 CHANGED
@@ -59,6 +59,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
59
59
  | `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `@mark1russell7/otel-ts`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). The rule is a ratchet. The check fails when the count is not the option `baseline`. Thus a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default day is 2027-01-20, the last day, and a repository can set only an earlier day. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
60
60
  | `release-files` | A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a line `Release-Edit: <reason>` in a commit message or in the body of the pull request. The commits of the release bot (the sync of the template) need no reason. | coeval `no-release-edit`, `no-release-edits`. crawler `no-release-edit`, `no-release-edits`. headroom `no-release-edits`, `release-files-frozen`. |
61
61
  | `unreleased-change` | A change does not set a version that npm has: the release skips such a version. The rule compares the version of the head of the change with the version of its merge base, so a version that only the base branch changed does not count. A repository where each pull request sets its version sets the option `versionEachChange`. Then a change of the shipped files also raises the version, when npm has that version already. The files that ship are the files of the folder of the package, without the tests, the fixtures, the Markdown files and the configs (the option `unshipped`). When the package has the field `files`, an entry that git tracks ships its files. An entry that git does not track is build output. Then the inputs of the build ship: each file of `src/`, and each script, module and JSON file. The files of `main` and `bin` also ship. A change of `package.json` ships when a field of the option `fields` changes, for example `exports`, but not the dependencies. On a push to the default branch, a version that the push sets breaks only when npm had it before the push. The release of the same push can publish it. An error of the registry makes the rule show `skip`. A repository with `.changeset/config.json`, a private package and a version `0.0.0` or `0.0.0-<stage>` are not examined. | rigor #18 and #20 (2026-11-02): two pull requests set the same version, and the second change did not get to npm. crawler, coeval, template `release.yml`. |
62
+ | `changesets-config` | A repository with `.github/workflows/release.yml` and a package that goes to npm has `.changeset/config.json` and `@changesets/cli` in the root devDependencies. With a version number in each pull request, each release of main during the CI of a pull request takes the number, and the pull request must bump again: on 2026-11-27 alerts PR 634 took 5 CI runs (main took 0.5.7, 0.6.0, 0.6.1 and 0.6.2). With Changesets, a pull request states only the kind of its change, and the release computes the version at the merge (`scripts/release/mode.ts`). `conventions fix` writes a first config with each private package in `ignore`. The rule fails from 2026-12-14. | alerts PR 634, AL-232. |
62
63
  | `version-title` | A merge whose title names a version sets a version in a `package.json`. A title names a version in parentheses at its end, for example `(0.3.3)` before the `(#212)` of a squash, or after `Release` at its start. On a push to the default branch, the rule examines each commit of the first-parent line against its first parent. On a pull request, it reads the title of the event file and examines the merge commit against the base. On a dispatched run of a pull request, the file of `CONVENTIONS_PULL_REQUEST` gives the title. Then the rule examines the change from the merge base to the head. A version counts only when the base branch does not have it already. A title with no version passes. A title that names an other version than the version that the merge sets also passes, because the change gets a release. | template #212 (`5933b34`) and #215 (`e077054`), 2026-11-06: both set `site-pages` 0.3.3, so the squash of #215 changed no `package.json`, and no release started. Template #162 and #164 (2026-11-04) did the same with 0.2.5. crawler, coeval `release.yml`. |
63
64
  | `published-minor` | A consumer does not stay behind the newest published minor of a package that the option `packages` names. The rule compares each range, and each version of `pnpm-lock.yaml`, with the tag `latest` of npm. A caret range of a `0.x` version cannot reach the next minor. With no `packages`, the rule does not start. | a consumer that stayed behind a published minor |
64
65
  | `changelog-version` | The top version section of the changelog of a package (`CHANGELOG.md` in its folder) is not above the version of its `package.json`. A section "Unreleased" does not count. With the option `everyVersion`, the top section is the same version. On 2026-11-03 a pull request added the section 0.5.0 with two breaking changes and left `package.json` at 0.4.1. A change of a dependency range then made the train plan the PATCH 0.4.2. | packing #249 and #253, release-train (2026-11-03). |
package/build/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { readFileSync } from "node:fs";
3
- import { c as runCli } from "./run-CgEAZJsx.js";
3
+ import { c as runCli } from "./run-BoQYaUSt.js";
4
4
  // src/cli.ts
5
5
  try {
6
6
  const args = process.argv.slice(2);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run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H,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;WAET;;;qBAIE;;wBA8EG,OAAO,yBAAyB,IAAI;;qBC7YvC;;UAGI;;WAEN;;;;;WAKA;;;;;WAKA;;;;;WAKA;;WAEA;WACA,KAAK,SAAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK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MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as requiredScripts, $n as securityWorkflow, $r as parseConfig, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as HOMES, Ar as readWorkflow, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as runCalls, Br as keyLine, Bt as privatePatterns, C as setVersions, Cn as declaredName, Cr as skippableJobs, Ct as pagesAfterRelease, D as trustPolicy, Dn as reposOf, Dr as MATRIX_EXPAND_MAX, Dt as pagesSite, E as TRAIN_SCOPES, En as repoOf, Er as gateAfterCancel, Et as pagesCalls, F as sourceMain, Fn as mergeHomes, Fr as RULE_WARN_DAYS, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SHARED_CI, Gr as readJsonc, Gt as isAllowedHit, H as calledJobs, Hn as hasTests, Hr as matchesAny, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as npmDrift, Ir as cleanPath, It as invalidPatternBreaks, J as evaluateExpression, Jn as sharedCi, Jr as runGit, Jt as lineNameHits, K as runsAtOnce, Kn as SHARED_WORKFLOWS, Kr as replaceLine, Kt as isCommonUse, L as blockHash, Ln as npmNames, Lr as codePackages, Lt as noLocalPaths, M as testsRequired, Mn as findHomes, Mr as STRICT_OPTIONS, Mt as HOME_PATTERNS, N as isSourcePath, Nn as mapMarkdown, Nr as cuePreset, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as signaturesOf, Or as parseWorkflow, Ot as exportsRequire, P as pathsOf, Pn as mapText, Pr as DEPENDENCY_FIELDS, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as securityGate, Qr as defaultOptions, Qt as pathNameHit, R as githubFetch, Rn as readOverlay, Rr as hasFile, Rt as privateNamesFile, S as namedVersions, Sn as modulesOf, Sr as prPathFilters, St as siteCheckInCi, T as IGNORE_AFTER, Tn as messageOf, Tr as summaryName, Tt as PAGES_WORKFLOWS, U as eventClass, Un as tsconfigTest, Ur as parseCatFileBatch, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as serviceRunMain, Vr as lineOf, Vt as privateTextBreaks, W as matrixPeak, Wn as SHARED_ACTIONS, Wr as parseJsonc, Wt as firstNameMatch, X as mayRun, Xn as SECURITY_FILE, Xr as showFiles, Xt as nameMatches, Y as groupParts, Yn as setupCue, Yr as runGitShow, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as isSecurityGate, Zr as specifiersOf, Zt as parsePrivateNames, _ as runPrePushArgs, _n as spansOf, _r as mitText, _t as swallowsTests, a as listRules, an as noConsole, ar as SECURITY_SCAN_COMMIT, at as reachOf, b as GITHUB_YAML, bn as moduleMessage, br as convertGate, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as securityCallers, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as runnerBudget, dt as unreleasedChangeRule, ei as parseRuleConfig, en as NOT_SOURCE, er as SUMMARY_GATES, et as releaseFiles, f as NO_READ_LINE, fn as containedHome, fr as scheduleMinute, ft as playwrightInstall, g as prePush, gn as shapesOfSource, gr as licenseFileOf, gt as startsTests, h as parsePrePushArgs, hn as shapeMessage, hr as licenseFile, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as summaryJobRule, it as publishedMinorRule, j as typedFiles, jn as MAP_RULE, jr as yamlFaults, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as HOME_EXPORTS, kr as readAction, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as securityOneJob, lt as npmLookup, m as installHook, mn as homeShapesOf, mr as authorOf, mt as jobFails, n as annotations, nn as consoleGate, nr as hasSummaryJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as SECURITY_SCAN_INPUTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as homeShape, pr as LICENSE_TEXTS, pt as hiddenFailures, q as workflowPeaks, qn as callsSharedCi, qr as repositoryOfRemote, qt as lineNameHit, r as createContext, rn as consoleKind, rr as startsOnPullRequest, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as SECURITY_TIMEOUT_MINUTES, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as addSummaryJob, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as withOneJob, ut as unreleasedChange, v as RULES, vn as HOME_SHAPES, vr as repositoryIsPublic, vt as pipeFails, w as versionTitle, wn as homePackage, wr as summaryJob, wt as pushMainOnly, x as workflowParses, xn as moduleUses, xr as gateTrigger, xt as pinnedGitDeps, y as workspaceProtocol, yn as homeModule, yr as ACTIONS_COMMIT, yt as isGitSpecifier, z as sharedDocsRule, zn as SERVICE_PACKAGE, zr as inFolder, zt as privateNamesFiles } from "./run-CgEAZJsx.js";
1
+ import { $ as requiredScripts, $n as securityWorkflow, $r as parseConfig, $t as CONSOLE_LAST_DAY, A as scriptsOf, An as HOMES, Ar as readWorkflow, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as runCalls, Br as keyLine, Bt as privatePatterns, C as setVersions, Cn as declaredName, Cr as skippableJobs, Ct as pagesAfterRelease, D as trustPolicy, Dn as reposOf, Dr as MATRIX_EXPAND_MAX, Dt as pagesSite, E as TRAIN_SCOPES, En as repoOf, Er as gateAfterCancel, Et as pagesCalls, F as sourceMain, Fn as mergeHomes, Fr as RULE_WARN_DAYS, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SHARED_CI, Gr as readJsonc, Gt as isAllowedHit, H as calledJobs, Hn as hasTests, Hr as matchesAny, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as npmDrift, Ir as cleanPath, It as invalidPatternBreaks, J as evaluateExpression, Jn as sharedCi, Jr as runGit, Jt as lineNameHits, K as runsAtOnce, Kn as SHARED_WORKFLOWS, Kr as replaceLine, Kt as isCommonUse, L as blockHash, Ln as npmNames, Lr as codePackages, Lt as noLocalPaths, M as testsRequired, Mn as findHomes, Mr as STRICT_OPTIONS, Mt as HOME_PATTERNS, N as isSourcePath, Nn as mapMarkdown, Nr as cuePreset, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as signaturesOf, Or as parseWorkflow, Ot as exportsRequire, P as pathsOf, Pn as mapText, Pr as DEPENDENCY_FIELDS, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as securityGate, Qr as defaultOptions, Qt as pathNameHit, R as githubFetch, Rn as readOverlay, Rr as hasFile, Rt as privateNamesFile, S as namedVersions, Sn as modulesOf, Sr as prPathFilters, St as siteCheckInCi, T as IGNORE_AFTER, Tn as messageOf, Tr as summaryName, Tt as PAGES_WORKFLOWS, U as eventClass, Un as tsconfigTest, Ur as parseCatFileBatch, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as serviceRunMain, Vr as lineOf, Vt as privateTextBreaks, W as matrixPeak, Wn as SHARED_ACTIONS, Wr as parseJsonc, Wt as firstNameMatch, X as mayRun, Xn as SECURITY_FILE, Xr as showFiles, Xt as nameMatches, Y as groupParts, Yn as setupCue, Yr as runGitShow, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as isSecurityGate, Zr as specifiersOf, Zt as parsePrivateNames, _ as runPrePushArgs, _n as spansOf, _r as mitText, _t as swallowsTests, a as listRules, an as noConsole, ar as SECURITY_SCAN_COMMIT, at as reachOf, b as GITHUB_YAML, bn as moduleMessage, br as convertGate, bt as isPinned, c as runCli, cn as hasImportMetaMain, cr as securityCallers, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as apiReportScript, dr as runnerBudget, dt as unreleasedChangeRule, ei as parseRuleConfig, en as NOT_SOURCE, er as SUMMARY_GATES, et as releaseFiles, f as NO_READ_LINE, fn as containedHome, fr as scheduleMinute, ft as playwrightInstall, g as prePush, gn as shapesOfSource, gr as licenseFileOf, gt as startsTests, h as parsePrePushArgs, hn as shapeMessage, hr as licenseFile, ht as parseAdvisory, i as formatResult, in as isCliFile, ir as summaryJobRule, it as publishedMinorRule, j as typedFiles, jn as MAP_RULE, jr as yamlFaults, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as HOME_EXPORTS, kr as readAction, kt as publishTextSafe, l as runFix, ln as mainCheck, lr as securityOneJob, lt as npmLookup, m as installHook, mn as homeShapesOf, mr as authorOf, mt as jobFails, n as annotations, nn as consoleGate, nr as hasSummaryJob, nt as minorOf, o as readConfig, on as noBuildOutput, or as SECURITY_SCAN_INPUTS, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as homeShape, pr as LICENSE_TEXTS, pt as hiddenFailures, q as workflowPeaks, qn as callsSharedCi, qr as repositoryOfRemote, qt as lineNameHit, r as createContext, rn as consoleKind, rr as startsOnPullRequest, rt as publishedMinor, s as runChecks, sn as REAL_COMPARE, sr as SECURITY_TIMEOUT_MINUTES, st as SHIPPED_FIELDS, t as USAGE, tn as consoleBreaks, tr as addSummaryJob, tt as lockedVersions, u as summaryMarkdown, un as coverageProvider, ur as withOneJob, ut as unreleasedChange, v as RULES, vn as HOME_SHAPES, vr as repositoryIsPublic, vt as pipeFails, w as versionTitle, wn as homePackage, wr as summaryJob, wt as pushMainOnly, x as workflowParses, xn as moduleUses, xr as gateTrigger, xt as pinnedGitDeps, y as workspaceProtocol, yn as homeModule, yr as ACTIONS_COMMIT, yt as isGitSpecifier, z as sharedDocsRule, zn as SERVICE_PACKAGE, zr as inFolder, zt as privateNamesFiles } from "./run-BoQYaUSt.js";
2
2
  import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
3
3
  import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-B6xQXXcL.js";
4
4
  // src/release-text.ts
@@ -75591,6 +75591,100 @@ const securityOverrides = {
75591
75591
  return breaks;
75592
75592
  }
75593
75593
  };
75594
+ // src/rules/changesets-config.ts
75595
+ /**
75596
+ * The rule `changesets-config`: a repository that publishes to npm from its release workflow uses Changesets. Then a
75597
+ * pull request states the kind of its change (a changeset: patch, minor or major), and the release on main computes
75598
+ * each version at the merge. A pull request does not set a version number, so a release of main during its CI cannot
75599
+ * take the number.
75600
+ */
75601
+ /** The file of the release workflow that the template gives each repository. */
75602
+ const RELEASE_WORKFLOW = ".github/workflows/release.yml";
75603
+ /** The configuration file of Changesets. The release mode (scripts/release/mode.ts) looks for this file. */
75604
+ const CHANGESET_CONFIG = ".changeset/config.json";
75605
+ /** The CLI that the version job of the release starts (`pnpm exec changeset version`). */
75606
+ const CHANGESET_CLI = "@changesets/cli";
75607
+ /** This function tells if a package goes to npm: it has a name, and it is not private. */
75608
+ const published = (pkg) => typeof pkg.manifest["name"] === "string" && pkg.manifest["private"] !== true;
75609
+ /** This function gives the packages of a repository that go to npm: the root and each package of the workspace. */
75610
+ function publishedPackages(context) {
75611
+ return [context.rootPackage, ...context.packages].filter(published);
75612
+ }
75613
+ /**
75614
+ * This function gives the text of a first `.changeset/config.json`, with public access and the branch main. Its
75615
+ * `ignore` holds each private package of the workspace, so that no changeset names it.
75616
+ */
75617
+ function defaultConfig(context) {
75618
+ const config = {
75619
+ $schema: "https://unpkg.com/@changesets/config@3.1.1/schema.json",
75620
+ changelog: "@changesets/cli/changelog",
75621
+ commit: false,
75622
+ fixed: [],
75623
+ linked: [],
75624
+ access: "public",
75625
+ baseBranch: "main",
75626
+ updateInternalDependencies: "patch",
75627
+ ignore: context.packages.filter((pkg) => typeof pkg.manifest["name"] === "string" && pkg.manifest["private"] === true).map((pkg) => pkg.manifest["name"]).sort()
75628
+ };
75629
+ return `${JSON.stringify(config, null, 2)}\n`;
75630
+ }
75631
+ /** This function tells if the root `package.json` has the CLI of Changesets in a dependency field. */
75632
+ function hasCli(rootPackage) {
75633
+ for (const field of ["devDependencies", "dependencies"]) {
75634
+ const deps = rootPackage.manifest[field];
75635
+ if (typeof deps === "object" && deps !== null && "@changesets/cli" in deps) return true;
75636
+ }
75637
+ return false;
75638
+ }
75639
+ const changesetsConfig = {
75640
+ id: "changesets-config",
75641
+ title: "A repository with a release workflow and a published package has `.changeset/config.json` and the CLI of Changesets.",
75642
+ reason: "With a version number in each pull request, each release of main during the CI of a pull request takes that number, and the pull request must bump again. On 11-27 alerts PR 634 took 5 CI runs: main took 0.5.7, 0.6.0, 0.6.1 and 0.6.2. With Changesets, a pull request states only the kind of its change, and the release computes the version at the merge. Open pull requests then also change no version, so the pin moves of the template (bump-pins) can go at any time.",
75643
+ fix: "Run `conventions fix --only changesets-config` to write `.changeset/config.json`, then add `@changesets/cli` to the root devDependencies (`pnpm add -Dw @changesets/cli`). From then on, each pull request that changes a published package adds a changeset (`pnpm exec changeset`), and it does not change the version field.",
75644
+ sources: [
75645
+ {
75646
+ repo: "vex",
75647
+ rule: "changesets",
75648
+ doc: ".changeset/config.json"
75649
+ },
75650
+ {
75651
+ repo: "client",
75652
+ rule: "changesets",
75653
+ doc: ".changeset/config.json"
75654
+ },
75655
+ {
75656
+ repo: "private",
75657
+ rule: "changesets-default",
75658
+ doc: "a decision of the owner on 2026-11-28, after the 5 CI runs of alerts PR 634"
75659
+ }
75660
+ ],
75661
+ options: {},
75662
+ failsFrom: "2026-12-14",
75663
+ check(context) {
75664
+ if (!hasFile(context.root, ".github/workflows/release.yml")) return { skipped: `the repository has no ${RELEASE_WORKFLOW}` };
75665
+ if (publishedPackages(context).length === 0) return { skipped: "the repository publishes no package to npm" };
75666
+ const breaks = [];
75667
+ if (!hasFile(context.root, ".changeset/config.json")) breaks.push({
75668
+ file: CHANGESET_CONFIG,
75669
+ message: `The repository publishes from ${RELEASE_WORKFLOW}, and it has no ${CHANGESET_CONFIG}. Each pull request then sets a version number, and each release of main during its CI takes that number.`,
75670
+ edits: [{
75671
+ file: CHANGESET_CONFIG,
75672
+ before: "",
75673
+ after: defaultConfig(context)
75674
+ }]
75675
+ });
75676
+ if (!hasCli(context.rootPackage)) {
75677
+ const line = lineOf(context.rootPackage.text, "\"devDependencies\"");
75678
+ breaks.push({
75679
+ file: context.rootPackage.file,
75680
+ ...line === void 0 ? {} : { line },
75681
+ message: `The root package.json has no ${CHANGESET_CLI}. The version job of the release runs \`pnpm exec changeset version\`, so it needs the CLI in the install.`,
75682
+ fix: `Run \`pnpm add -Dw ${CHANGESET_CLI}\`, so that the lockfile has it too.`
75683
+ });
75684
+ }
75685
+ return breaks;
75686
+ }
75687
+ };
75594
75688
  // src/rules/version-title.ts
75595
75689
  /**
75596
75690
  * The rule `version-title`: a merge whose title names a version sets that version in a `package.json`.
@@ -75923,6 +76017,7 @@ const RULES = [
75923
76017
  apiReportScript,
75924
76018
  releaseFiles,
75925
76019
  unreleasedChange,
76020
+ changesetsConfig,
75926
76021
  versionTitle,
75927
76022
  publishedMinor,
75928
76023
  changelogVersion,
@@ -77167,4 +77262,4 @@ function runHook(args, io) {
77167
77262
  }
77168
77263
  export { requiredScripts as $, securityWorkflow as $n, parseConfig as $r, CONSOLE_LAST_DAY as $t, scriptsOf as A, HOMES as An, readWorkflow as Ar, packNoBuildinfo as At, TEMPLATE_CALLED as B, runCalls as Bn, keyLine as Br, privatePatterns as Bt, setVersions as C, declaredName as Cn, skippableJobs as Cr, pagesAfterRelease as Ct, trustPolicy as D, reposOf as Dn, MATRIX_EXPAND_MAX as Dr, pagesSite as Dt, TRAIN_SCOPES as E, repoOf as En, gateAfterCancel as Er, pagesCalls as Et, sourceMain as F, mergeHomes as Fn, RULE_WARN_DAYS as Fr, PRIVATE_PATTERNS_VARIABLE as Ft, runnerPeak as G, SHARED_CI as Gn, readJsonc as Gr, isAllowedHit as Gt, calledJobs as H, hasTests as Hn, matchesAny as Hr, PRIVATE_NAME_LIST as Ht, HOME_TIMEOUT_MS as I, npmDrift as In, cleanPath as Ir, invalidPatternBreaks as It, evaluateExpression as J, sharedCi as Jn, runGit as Jr, lineNameHits as Jt, runsAtOnce as K, SHARED_WORKFLOWS as Kn, replaceLine as Kr, isCommonUse as Kt, blockHash as L, npmNames as Ln, codePackages as Lr, noLocalPaths as Lt, testsRequired as M, findHomes as Mn, STRICT_OPTIONS as Mr, HOME_PATTERNS as Mt, isSourcePath as N, mapMarkdown as Nn, cuePreset as Nr, PRIVATE_NAMES_FILE_CONFIG as Nt, typedScripts as O, signaturesOf as On, parseWorkflow as Or, exportsRequire as Ot, pathsOf as P, mapText as Pn, DEPENDENCY_FIELDS as Pr, PRIVATE_NAMES_FILE_VARIABLE as Pt, roadmapParses as Q, securityGate as Qn, defaultOptions as Qr, pathNameHit as Qt, githubFetch as R, readOverlay as Rn, hasFile as Rr, privateNamesFile as Rt, namedVersions as S, modulesOf as Sn, prPathFilters as Sr, siteCheckInCi as St, IGNORE_AFTER as T, messageOf$1 as Tn, summaryName as Tr, PAGES_WORKFLOWS as Tt, eventClass as U, tsconfigTest as Un, parseCatFileBatch as Ur, PrivateNameListError as Ut, UNKNOWN_MATRIX_JOBS as V, serviceRunMain as Vn, lineOf as Vr, privateTextBreaks as Vt, matrixPeak as W, SHARED_ACTIONS as Wn, parseJsonc as Wr, firstNameMatch as Wt, mayRun as X, SECURITY_FILE as Xn, showFiles as Xr, nameMatches as Xt, groupParts as Y, setupCue as Yn, runGitShow as Yr, mergePrivateNames as Yt, roadmapOfLine as Z, isSecurityGate as Zn, specifiersOf as Zr, parsePrivateNames as Zt, runPrePushArgs as _, spansOf as _n, mitText as _r, swallowsTests as _t, listRules as a, noConsole as an, SECURITY_SCAN_COMMIT as ar, reachOf as at, GITHUB_YAML as b, moduleMessage as bn, convertGate as br, isPinned as bt, runCli as c, hasImportMetaMain as cn, securityCallers as cr, UNSHIPPED_FILES as ct, HOOK_MARKER as d, apiReportScript as dn, runnerBudget as dr, unreleasedChangeRule as dt, parseRuleConfig as ei, NOT_SOURCE as en, SUMMARY_GATES as er, releaseFiles as et, NO_READ_LINE as f, containedHome as fn, scheduleMinute as fr, playwrightInstall as ft, prePush as g, shapesOfSource as gn, licenseFileOf as gr, startsTests as gt, parsePrePushArgs as h, shapeMessage as hn, licenseFile as hr, parseAdvisory as ht, formatResult as i, isCliFile as in, summaryJobRule as ir, publishedMinorRule as it, typedFiles as j, MAP_RULE as jn, yamlFaults as jr, DEFAULT_ALLOWED as jt, configsOfScript as k, HOME_EXPORTS as kn, readAction as kr, publishTextSafe as kt, runFix as l, mainCheck as ln, securityOneJob as lr, npmLookup as lt, installHook as m, homeShapesOf as mn, authorOf as mr, jobFails as mt, annotations as n, consoleGate as nn, hasSummaryJob as nr, minorOf as nt, readConfig as o, noBuildOutput as on, SECURITY_SCAN_INPUTS as or, NPM_REGISTRY as ot, PRE_PUSH_HOOK as p, homeShape as pn, LICENSE_TEXTS as pr, hiddenFailures as pt, workflowPeaks as q, callsSharedCi as qn, repositoryOfRemote as qr, lineNameHit as qt, createContext as r, consoleKind as rn, startsOnPullRequest as rr, publishedMinor as rt, runChecks as s, REAL_COMPARE as sn, SECURITY_TIMEOUT_MINUTES as sr, SHIPPED_FIELDS as st, USAGE as t, consoleBreaks as tn, addSummaryJob as tr, lockedVersions as tt, summaryMarkdown as u, coverageProvider as un, withOneJob as ur, unreleasedChange as ut, RULES as v, HOME_SHAPES as vn, repositoryIsPublic as vr, pipeFails as vt, versionTitle as w, homePackage as wn, summaryJob as wr, pushMainOnly as wt, workflowParses as x, moduleUses as xn, gateTrigger as xr, pinnedGitDeps as xt, workspaceProtocol as y, homeModule as yn, ACTIONS_COMMIT as yr, isGitSpecifier as yt, sharedDocsRule as z, SERVICE_PACKAGE as zn, inFolder as zr, privateNamesFiles as zt };
77169
77264
 
77170
- //# sourceMappingURL=run-CgEAZJsx.js.map
77265
+ //# sourceMappingURL=run-BoQYaUSt.js.map