@mark1russell7/conventions 0.41.8 → 0.41.9
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 -1
- package/build/cli.js +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/{run-BGqTd4qA.js → run-ByfXAlgu.js} +26 -10
- package/build/run-ByfXAlgu.js.map +1 -0
- package/package.json +1 -1
- package/build/run-BGqTd4qA.js.map +0 -1
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
49
49
|
| `tsconfig-test` | Each package with a `tsconfig.json` has a `tsconfig.test.json`, and its `typecheck` script names it. | coeval, crawler, Vex `package-tsconfig-test` or `pkg-tsconfig-test`, and `tsconfig-test`. headroom `tsconfig-test`, `tsconfig-test-per-package`. |
|
|
50
50
|
| `cue-preset` | The `tsconfig.json` of each package extends a preset of `@mark1russell7/cue`. No config of a package turns off a strict option that its preset turns on. `erasableSyntaxOnly` is one of these options, because `node` cannot strip the other syntax. | client `cue-config`, `no-manual-tsconfig`. private `cue-preset-strict`, `strict-preset`, `new-package-via-cli`. coeval, crawler, headroom, Vex `package-scaffold`. |
|
|
51
51
|
| `required-scripts` | The root `package.json` has the script `typecheck`. It also has `lint:ste` when the repository uses `ste-lint`: a dependency on `@mark1russell7/ste-lint`, or a `ste.config.json` at the root. The shared CI skips a missing script, so a removed script turns its check off with no sign. | client, coeval, crawler, private, headroom, Vex `ste-prose`. systems `lint-ste-in-ci`. coeval, crawler, headroom, Vex `tsconfig-test`. |
|
|
52
|
-
| `no-build-output` | Git keeps no file in a folder named `dist` or `build`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
|
|
52
|
+
| `no-build-output` | Git keeps no file in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
|
|
53
53
|
| `no-local-paths` | No tracked file has the home folder of a user: `C:\Users\<name>`, `/Users/<name>` or `/home/<name>`. A CI user (`runner`), a name of one character and a placeholder (`<you>`) are not a break. The commit messages of the change (a pull request, or `--base`) and the title and the body of the pull request do not have one either. The same is true for each pattern of the option `patterns` and of the environment variable `CONVENTIONS_PRIVATE_PATTERNS`. A break of a private pattern shows only the line of the pattern in the variable, not the text. A line of the variable that is not a valid regular expression is a break of its own. | client `I12`. systems `no-identifying-names`, `no-private-identifiers`, `no-private-names`. coeval `no-private-names`. |
|
|
54
54
|
| `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`. |
|
|
55
55
|
| `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 git tracks each entry of the field `files`, only those entries 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`. |
|
|
@@ -125,6 +125,7 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
125
125
|
| `required-scripts.scripts` | `["typecheck"]` | The scripts of the root `package.json`. |
|
|
126
126
|
| `required-scripts.steScripts` | `["lint:ste"]` | The scripts of the root `package.json` when the repository uses `ste-lint`. |
|
|
127
127
|
| `no-build-output.folders` | `["dist", "build"]` | The names of the folders of build output. |
|
|
128
|
+
| `no-build-output.reports` | `["coverage"]` | The names of the folders of reports. Such a folder breaks the rule only next to a `package.json`. |
|
|
128
129
|
| `no-local-paths.allow` | `[]` | More user names that are not a break. |
|
|
129
130
|
| `no-local-paths.patterns` | `[]` | More regular expressions of text that no file has. The environment variable `CONVENTIONS_PRIVATE_PATTERNS` adds one on each line, so a private name stays out of `package.json`. The shared CI gives the variable from the secret of the same name. |
|
|
130
131
|
| `release-files.paths` | `[".github/workflows/release.yml", "scripts/release/**"]` | The globs of the files of the release flow. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -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-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.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/pinned-git-deps.ts","../src/rules/pipe-fails.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/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.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G,aAAa;;qBClNb;;qBAGA;;qBAGA;;UAQI;WACN;WACA;;;wBAkBK,gBAAgB,eAAe;;;;;;wBA8B/B,WAAW,cAAc;EAA0C;;EAAmB;;qBA4DzF,gBAAgB;qBChGhB,UAAU;;qBC5BV;;qBAaA;;qBAGA;;wBASG,cAAc,cAAc;qBAI/B,UAAU;;qBC9BV;;;;;;wBAgCG,SAAS;qBAmBZ,gBAAgB;;KC3DjB;;UAGK;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA,OAAO;;WAEP;;;;;;WAMA;;WAEA;;;qBAIE;;qBAIA,gBAAgB;;wBA0ab,YAAY,wBAAwB;;wBAWpC,WAAW,eAAe,QAAQ,gBAAgB,kBAAkB;;wBAMpE,UAAU,eAAe,iBAAgB,kBAA0B;;wBAkBnE,YAAY,iBAAgB;;wBAW5B,QAAQ,gBAAgB;;UC/e9B;WACC,MAAM;WACN,SAAS;;;wBAIJ,QAAQ,MAAM;;wBAKd,aAAa,gBAAgB,SAAS;;wBAKtC,aAAa;;wBAMb,OAAO,SAAS;;wBAShB,UAAU,cAAc,cAAc,MAAM;qBAS/C,aAAa;;qBC/Cb,eAAe,SAAS,eAAe;;wBAQpC,cAAc;;wBAMd,SAAS;;wBAWT,QAAQ,cAAc;;;;;wBA+BtB,mBAAmB,SAAS;qBAW/B,aAAa;qBCIb,kBAAkB;;qBCnElB;;wBA6BG,kBAAkB;qBAiFrB,WAAW;
|
|
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-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.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/pinned-git-deps.ts","../src/rules/pipe-fails.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/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/home-exports.ts","../src/workflow.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;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;qBAIpC;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WA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MAP_RULE, A as typedFiles, An as readWorkflow, At as lineNameHits, B as roadmapParses, Bn as lineOf, Bt as LICENSE_TEXTS, C as versionTitle, Cn as ACTIONS_COMMIT, Ct as privateTextBreaks, D as typedScripts, Dn as summaryName, Dt as isAllowedHit, E as trustPolicy, En as prPathFilters, Et as firstNameMatch, F as HOME_TIMEOUT_MS, Fn as cleanPath, Ft as REAL_COMPARE, G as publishedMinor, Gn as runGit, Gt as repositoryIsPublic, H as releaseFiles, Hn as parseJsonc, Ht as licenseFile, I as blockHash, In as codePackages, It as hasImportMetaMain, J as NPM_REGISTRY, Jn as parseConfig, Jt as messageOf, K as publishedMinorRule, Kn as specifiersOf, Kt as declaredName, L as githubFetch, Ln as hasFile, Lt as mainCheck, M as isSourcePath, Mn as cuePreset, Mt as parsePrivateNames, N as pathsOf, Nn as DEPENDENCY_FIELDS, Nt as pathNameHit, O as configsOfScript, On as gateAfterCancel, Ot as isCommonUse, P as sourceMain, Pn as RULE_WARN_DAYS, Pt as noBuildOutput, Q as unreleasedChange, Qt as HOMES, R as sharedDocsRule, Rn as inFolder, Rt as coverageProvider, S as setVersions, Sn as withOneJob, St as privatePatterns, T as TRAIN_SCOPES, Tn as gateTrigger, Tt as PrivateNameListError, U as lockedVersions, Un as readJsonc, Ut as licenseFileOf, V as requiredScripts, Vn as matchesAny, Vt as authorOf, W as minorOf, Wn as replaceLine, Wt as mitText, X as UNSHIPPED_FILES, Xt as reposOf, Y as SHIPPED_FIELDS, Yt as repoOf, Z as npmLookup, Zt as signaturesOf, _ as workspaceProtocol, _n as SECURITY_SCAN_COMMIT, _t as PRIVATE_NAMES_FILE_VARIABLE, a as listRules, an as HOME_EXPORTS, at as repositoryOfRemote, b as yamlFaults, bn as securityCallers, bt as noLocalPaths, c as runCli, cn as serviceRunMain, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_ACTIONS, dt as pagesSite, en as findHomes, et as pipeFails, f as NO_READ_LINE, fn as SHARED_CI, ft as exportsRequire, g as RULES, gn as setupCue, gt as PRIVATE_NAMES_FILE_CONFIG, h as prePush, hn as sharedCi, ht as HOME_PATTERNS, i as formatResult, in as readOverlay, it as pagesAfterRelease, j as testsRequired, jn as STRICT_OPTIONS, jt as nameMatches, k as scriptsOf, kn as readAction, kt as lineNameHit, l as runFix, ln as hasTests, lt as PAGES_WORKFLOWS, m as installHook, mn as callsSharedCi, mt as DEFAULT_ALLOWED, n as annotations, nn as mapText, nt as isPinned, o as readConfig, on as SERVICE_PACKAGE, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SHARED_WORKFLOWS, pt as packNoBuildinfo, q as reachOf, qn as defaultOptions, qt as homePackage, r as createContext, rn as mergeHomes, rt as pinnedGitDeps, s as runChecks, sn as runCalls, st as scheduleMinute, t as USAGE, tn as mapMarkdown, tt as isGitSpecifier, u as summaryMarkdown, un as tsconfigTest, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_SCAN_INPUTS, vt as PRIVATE_PATTERNS_VARIABLE, w as IGNORE_AFTER, wn as convertGate, wt as PRIVATE_NAME_LIST, x as namedVersions, xn as securityOneJob, xt as privateNamesFile, y as workflowParses, yn as SECURITY_TIMEOUT_MINUTES, yt as invalidPatternBreaks, z as roadmapOfLine, zn as keyLine, zt as apiReportScript } from "./run-
|
|
1
|
+
import { $ as unreleasedChangeRule, $t as MAP_RULE, A as typedFiles, An as readWorkflow, At as lineNameHits, B as roadmapParses, Bn as lineOf, Bt as LICENSE_TEXTS, C as versionTitle, Cn as ACTIONS_COMMIT, Ct as privateTextBreaks, D as typedScripts, Dn as summaryName, Dt as isAllowedHit, E as trustPolicy, En as prPathFilters, Et as firstNameMatch, F as HOME_TIMEOUT_MS, Fn as cleanPath, Ft as REAL_COMPARE, G as publishedMinor, Gn as runGit, Gt as repositoryIsPublic, H as releaseFiles, Hn as parseJsonc, Ht as licenseFile, I as blockHash, In as codePackages, It as hasImportMetaMain, J as NPM_REGISTRY, Jn as parseConfig, Jt as messageOf, K as publishedMinorRule, Kn as specifiersOf, Kt as declaredName, L as githubFetch, Ln as hasFile, Lt as mainCheck, M as isSourcePath, Mn as cuePreset, Mt as parsePrivateNames, N as pathsOf, Nn as DEPENDENCY_FIELDS, Nt as pathNameHit, O as configsOfScript, On as gateAfterCancel, Ot as isCommonUse, P as sourceMain, Pn as RULE_WARN_DAYS, Pt as noBuildOutput, Q as unreleasedChange, Qt as HOMES, R as sharedDocsRule, Rn as inFolder, Rt as coverageProvider, S as setVersions, Sn as withOneJob, St as privatePatterns, T as TRAIN_SCOPES, Tn as gateTrigger, Tt as PrivateNameListError, U as lockedVersions, Un as readJsonc, Ut as licenseFileOf, V as requiredScripts, Vn as matchesAny, Vt as authorOf, W as minorOf, Wn as replaceLine, Wt as mitText, X as UNSHIPPED_FILES, Xt as reposOf, Y as SHIPPED_FIELDS, Yt as repoOf, Z as npmLookup, Zt as signaturesOf, _ as workspaceProtocol, _n as SECURITY_SCAN_COMMIT, _t as PRIVATE_NAMES_FILE_VARIABLE, a as listRules, an as HOME_EXPORTS, at as repositoryOfRemote, b as yamlFaults, bn as securityCallers, bt as noLocalPaths, c as runCli, cn as serviceRunMain, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_ACTIONS, dt as pagesSite, en as findHomes, et as pipeFails, f as NO_READ_LINE, fn as SHARED_CI, ft as exportsRequire, g as RULES, gn as setupCue, gt as PRIVATE_NAMES_FILE_CONFIG, h as prePush, hn as sharedCi, ht as HOME_PATTERNS, i as formatResult, in as readOverlay, it as pagesAfterRelease, j as testsRequired, jn as STRICT_OPTIONS, jt as nameMatches, k as scriptsOf, kn as readAction, kt as lineNameHit, l as runFix, ln as hasTests, lt as PAGES_WORKFLOWS, m as installHook, mn as callsSharedCi, mt as DEFAULT_ALLOWED, n as annotations, nn as mapText, nt as isPinned, o as readConfig, on as SERVICE_PACKAGE, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SHARED_WORKFLOWS, pt as packNoBuildinfo, q as reachOf, qn as defaultOptions, qt as homePackage, r as createContext, rn as mergeHomes, rt as pinnedGitDeps, s as runChecks, sn as runCalls, st as scheduleMinute, t as USAGE, tn as mapMarkdown, tt as isGitSpecifier, u as summaryMarkdown, un as tsconfigTest, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_SCAN_INPUTS, vt as PRIVATE_PATTERNS_VARIABLE, w as IGNORE_AFTER, wn as convertGate, wt as PRIVATE_NAME_LIST, x as namedVersions, xn as securityOneJob, xt as privateNamesFile, y as workflowParses, yn as SECURITY_TIMEOUT_MINUTES, yt as invalidPatternBreaks, z as roadmapOfLine, zn as keyLine, zt as apiReportScript } from "./run-ByfXAlgu.js";
|
|
2
2
|
import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
|
|
3
3
|
// src/release-text.ts
|
|
4
4
|
/**
|
|
@@ -10082,10 +10082,17 @@ const mainCheck = {
|
|
|
10082
10082
|
/**
|
|
10083
10083
|
* The rule `no-build-output`: git does not keep build output.
|
|
10084
10084
|
*/
|
|
10085
|
+
/** The folders of build output. */
|
|
10086
|
+
const FOLDERS = ["dist", "build"];
|
|
10087
|
+
/**
|
|
10088
|
+
* The folders of reports. A test run with coverage writes `coverage` next to the `package.json` of
|
|
10089
|
+
* the run. A source folder with the same name in another place, for example a shared action, is not a report.
|
|
10090
|
+
*/
|
|
10091
|
+
const REPORTS = ["coverage"];
|
|
10085
10092
|
const noBuildOutput = {
|
|
10086
10093
|
id: "no-build-output",
|
|
10087
|
-
title: "Git keeps no build output: no tracked file is in a folder named `dist` or `build`.",
|
|
10088
|
-
reason: "The release workflow builds each package from the source.
|
|
10094
|
+
title: "Git keeps no build output: no tracked file is in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`.",
|
|
10095
|
+
reason: "The release workflow builds each package from the source, and CI makes the coverage reports. Such files in git go stale, make noise in each diff, and a user can get old code from a git install.",
|
|
10089
10096
|
fix: "Remove the folder from git with `git rm -r --cached <folder>`, and keep its name in `.gitignore`.",
|
|
10090
10097
|
sources: [
|
|
10091
10098
|
{
|
|
@@ -10104,19 +10111,28 @@ const noBuildOutput = {
|
|
|
10104
10111
|
doc: "CLAUDE.md:48"
|
|
10105
10112
|
}
|
|
10106
10113
|
],
|
|
10107
|
-
options: {
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10114
|
+
options: {
|
|
10115
|
+
folders: {
|
|
10116
|
+
type: "strings",
|
|
10117
|
+
default: FOLDERS,
|
|
10118
|
+
description: "The names of the folders of build output."
|
|
10119
|
+
},
|
|
10120
|
+
reports: {
|
|
10121
|
+
type: "strings",
|
|
10122
|
+
default: REPORTS,
|
|
10123
|
+
description: "The names of the folders of reports. Such a folder breaks the rule only next to a `package.json`."
|
|
10124
|
+
}
|
|
10125
|
+
},
|
|
10112
10126
|
check(context, options) {
|
|
10113
10127
|
const files = context.gitFiles();
|
|
10114
10128
|
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
10115
|
-
const names = new Set(Array.isArray(options["folders"]) ? options["folders"] :
|
|
10129
|
+
const names = new Set(Array.isArray(options["folders"]) ? options["folders"] : FOLDERS);
|
|
10130
|
+
const reports = new Set(Array.isArray(options["reports"]) ? options["reports"] : REPORTS);
|
|
10131
|
+
const tracked = new Set(files);
|
|
10116
10132
|
const counts = /* @__PURE__ */ new Map();
|
|
10117
10133
|
for (const file of files) {
|
|
10118
10134
|
const segments = file.split("/");
|
|
10119
|
-
const index = segments.slice(0, -1).findIndex((segment) => names.has(segment));
|
|
10135
|
+
const index = segments.slice(0, -1).findIndex((segment, at) => names.has(segment) || reports.has(segment) && tracked.has([...segments.slice(0, at), "package.json"].join("/")));
|
|
10120
10136
|
if (index < 0) continue;
|
|
10121
10137
|
const folder = segments.slice(0, index + 1).join("/");
|
|
10122
10138
|
counts.set(folder, (counts.get(folder) ?? 0) + 1);
|
|
@@ -15454,4 +15470,4 @@ function runHook(args, io) {
|
|
|
15454
15470
|
}
|
|
15455
15471
|
export { unreleasedChangeRule as $, MAP_RULE as $t, typedFiles as A, readWorkflow as An, lineNameHits as At, roadmapParses as B, lineOf as Bn, LICENSE_TEXTS as Bt, versionTitle as C, ACTIONS_COMMIT as Cn, privateTextBreaks as Ct, typedScripts as D, summaryName as Dn, isAllowedHit as Dt, trustPolicy as E, prPathFilters as En, firstNameMatch as Et, HOME_TIMEOUT_MS as F, cleanPath as Fn, REAL_COMPARE as Ft, publishedMinor as G, runGit as Gn, repositoryIsPublic as Gt, releaseFiles as H, parseJsonc as Hn, licenseFile as Ht, blockHash as I, codePackages as In, hasImportMetaMain as It, NPM_REGISTRY as J, parseConfig as Jn, messageOf as Jt, publishedMinorRule as K, specifiersOf as Kn, declaredName as Kt, githubFetch as L, hasFile as Ln, mainCheck as Lt, isSourcePath as M, cuePreset as Mn, parsePrivateNames as Mt, pathsOf as N, DEPENDENCY_FIELDS as Nn, pathNameHit as Nt, configsOfScript as O, gateAfterCancel as On, isCommonUse as Ot, sourceMain as P, RULE_WARN_DAYS as Pn, noBuildOutput as Pt, unreleasedChange as Q, HOMES as Qt, sharedDocsRule as R, inFolder as Rn, coverageProvider as Rt, setVersions as S, withOneJob as Sn, privatePatterns as St, TRAIN_SCOPES as T, gateTrigger as Tn, PrivateNameListError as Tt, lockedVersions as U, readJsonc as Un, licenseFileOf as Ut, requiredScripts as V, matchesAny as Vn, authorOf as Vt, minorOf as W, replaceLine as Wn, mitText as Wt, UNSHIPPED_FILES as X, reposOf as Xt, SHIPPED_FIELDS as Y, repoOf as Yt, npmLookup as Z, signaturesOf as Zt, workspaceProtocol as _, SECURITY_SCAN_COMMIT as _n, PRIVATE_NAMES_FILE_VARIABLE as _t, listRules as a, HOME_EXPORTS as an, repositoryOfRemote as at, yamlFaults as b, securityCallers as bn, noLocalPaths as bt, runCli as c, serviceRunMain as cn, pushMainOnly as ct, HOOK_MARKER as d, SHARED_ACTIONS as dn, pagesSite as dt, findHomes as en, pipeFails as et, NO_READ_LINE as f, SHARED_CI as fn, exportsRequire as ft, RULES as g, setupCue as gn, PRIVATE_NAMES_FILE_CONFIG as gt, prePush as h, sharedCi as hn, HOME_PATTERNS as ht, formatResult as i, readOverlay as in, pagesAfterRelease as it, testsRequired as j, STRICT_OPTIONS as jn, nameMatches as jt, scriptsOf as k, readAction as kn, lineNameHit as kt, runFix as l, hasTests as ln, PAGES_WORKFLOWS as lt, installHook as m, callsSharedCi as mn, DEFAULT_ALLOWED as mt, annotations as n, mapText as nn, isPinned as nt, readConfig as o, SERVICE_PACKAGE as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SHARED_WORKFLOWS as pn, packNoBuildinfo as pt, reachOf as q, defaultOptions as qn, homePackage as qt, createContext as r, mergeHomes as rn, pinnedGitDeps as rt, runChecks as s, runCalls as sn, scheduleMinute as st, USAGE as t, mapMarkdown as tn, isGitSpecifier as tt, summaryMarkdown as u, tsconfigTest as un, pagesCalls as ut, GITHUB_YAML as v, SECURITY_SCAN_INPUTS as vn, PRIVATE_PATTERNS_VARIABLE as vt, IGNORE_AFTER as w, convertGate as wn, PRIVATE_NAME_LIST as wt, namedVersions as x, securityOneJob as xn, privateNamesFile as xt, workflowParses as y, SECURITY_TIMEOUT_MINUTES as yn, invalidPatternBreaks as yt, roadmapOfLine as z, keyLine as zn, apiReportScript as zt };
|
|
15456
15472
|
|
|
15457
|
-
//# sourceMappingURL=run-
|
|
15473
|
+
//# sourceMappingURL=run-ByfXAlgu.js.map
|