@mark1russell7/conventions 0.27.1 → 0.28.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.
package/README.md
CHANGED
|
@@ -144,7 +144,8 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
144
144
|
| `--list` | Show each rule: the reason, the fix, the options, the state and the audit rows. |
|
|
145
145
|
| `--root <folder>` | The root of the repository. The default is the current folder. |
|
|
146
146
|
| `--rule <id>` | Only this rule. Use it again for more rules. |
|
|
147
|
-
| `--base <ref>` | The base commit of the change, for the rules `release-files`, `home-package` and `unreleased-change`. |
|
|
147
|
+
| `--base <ref>` | The base commit of the change, for the rules `release-files`, `home-package` and `unreleased-change`. Outside CI, the default is the default branch of origin, so a local check examines the same added lines as the check of the pull request. |
|
|
148
|
+
| `--no-base` | Do not use that default. |
|
|
148
149
|
| `--json` | Write the result as JSON. |
|
|
149
150
|
|
|
150
151
|
## The map of homes
|
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-trigger.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-local-paths.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/push-main-only.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/unreleased-change.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/home-exports.ts","../src/workflow.ts","../src/run.ts","../src/workspace.ts"],"mappings":";UASiB;WACN;WACA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;qBAkBA;;;;;qBAyBA,WAAW;;wBAmGR,qBAAqB,SAAQ,iBAA6B;qBA4G7D,kBAAkB;qBCxQlB,mBAAmB;;qBCuBnB,gBAAgB;;qBC7BhB,cAAc,SAAS;WAA0B;WAA0B;;UC6EvE;WACN;WACA;WACA;;WAEA;WACA;;;UAIM;;WAEN;;WAEA;;WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;UCrMzC;WACN;WACA;WACA;;WAEA;WACA,iBAAiB;;WAEjB;;WAEA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;;wBAaZ,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,gCAAqC;;wBAwB1G,UAAU,SAAS,eAAe;;UAmDjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA0BrB,gBAAgB,QAAQ;;wBAsBxB,YAAY,QAAQ;;wBAYpB,UAAU,QAAQ,+BAA+B,iBAAgB;;UAkBhE;WACN;WACA,KAAK,SAAS;WACd,SAAS;WACT,SAAS;;;qBAIP;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-trigger.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-local-paths.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/push-main-only.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/unreleased-change.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/home-exports.ts","../src/workflow.ts","../src/run.ts","../src/workspace.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;;;UAGvC;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;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,WAAW;;wBA2BX,UAAU;;wBAUV,OAAO,cAAc;;qBAOxB,UAAW,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;UC1M9E;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;;UAIH;;WAEN;;WAEA,OAAO,SAAS,eAAe;;;wBAW1B,eAAe,MAAM,OAAO;;;;;;;wBAU5B,YAAY,gBAAgB,gBAAgB,SAAS;;qBCnCxD;qBA4FA,WAAW;;UCtFP;WACN;WACA;WACA;;;wBAIK,cAAc,eAAe;;qBAoBhC;;wBAyBG,YAAY;;;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
@@ -1 +1 @@
|
|
|
1
|
-
export { St as ACTIONS_COMMIT, X as DEFAULT_ALLOWED, At as DEPENDENCY_FIELDS, mt as HOMES, xt as HOME_EXPORTS, Z as HOME_PATTERNS, M as HOME_TIMEOUT_MS, y as IGNORE_AFTER, rt as LICENSE_TEXTS, ht as MAP_RULE, p as NPM_REGISTRY, q as PAGES_WORKFLOWS, et as REAL_COMPARE, d as RULES, m as SHIPPED_FIELDS, Ot as STRICT_OPTIONS, b as TRAIN_SCOPES, h as UNSHIPPED_FILES, t as USAGE, n as annotations, it as authorOf, N as blockHash, jt as cleanPath, Mt as codePackages, C as configsOfScript, Ct as convertGate, r as createContext, kt as cuePreset, lt as declaredName, qt as defaultOptions, gt as findHomes, i as formatResult, wt as gateTrigger, P as githubFetch, Ut as globFolders, Wt as globToRegExp, Nt as hasFile, tt as hasImportMetaMain, D as hasTests, ut as homePackage, Pt as inFolder, W as isGitSpecifier, G as isPinned, k as isSourcePath, Ft as keyLine, at as licenseFile, ot as licenseFileOf, It as lineOf, a as listRules, nt as mainCheck, _t as mapMarkdown, vt as mapText, Lt as matchesAny, yt as mergeHomes, dt as messageOf, st as mitText, $ as noBuildOutput, Q as noLocalPaths, g as npmLookup, Gt as packageFolders, J as pagesCalls, Y as pagesSite, Jt as parseConfig, Rt as parseJsonc, A as pathsOf, K as pinnedGitDeps, Tt as prPathFilters, U as pushMainOnly, o as readConfig, zt as readJsonc, bt as readOverlay, Dt as readWorkflow, H as releaseFiles, Bt as replaceLine, ft as repoOf, ct as repositoryIsPublic, I as repositoryOfRemote, V as requiredScripts, z as roadmapOfLine, B as roadmapParses, s as runChecks, c as runCli, l as runFix, Vt as runGit, L as runnerBudget, R as scheduleMinute, w as scriptsOf, F as sharedDocsRule, pt as signaturesOf, j as sourceMain, Ht as specifiersOf, u as summaryMarkdown, Et as summaryName, E as testsRequired, x as trustPolicy, O as tsconfigTest, T as typedFiles, S as typedScripts, _ as unreleasedChange, v as unreleasedChangeRule, Kt as workspaceGlobs, f as workspaceProtocol } from "./run-
|
|
1
|
+
export { St as ACTIONS_COMMIT, X as DEFAULT_ALLOWED, At as DEPENDENCY_FIELDS, mt as HOMES, xt as HOME_EXPORTS, Z as HOME_PATTERNS, M as HOME_TIMEOUT_MS, y as IGNORE_AFTER, rt as LICENSE_TEXTS, ht as MAP_RULE, p as NPM_REGISTRY, q as PAGES_WORKFLOWS, et as REAL_COMPARE, d as RULES, m as SHIPPED_FIELDS, Ot as STRICT_OPTIONS, b as TRAIN_SCOPES, h as UNSHIPPED_FILES, t as USAGE, n as annotations, it as authorOf, N as blockHash, jt as cleanPath, Mt as codePackages, C as configsOfScript, Ct as convertGate, r as createContext, kt as cuePreset, lt as declaredName, qt as defaultOptions, gt as findHomes, i as formatResult, wt as gateTrigger, P as githubFetch, Ut as globFolders, Wt as globToRegExp, Nt as hasFile, tt as hasImportMetaMain, D as hasTests, ut as homePackage, Pt as inFolder, W as isGitSpecifier, G as isPinned, k as isSourcePath, Ft as keyLine, at as licenseFile, ot as licenseFileOf, It as lineOf, a as listRules, nt as mainCheck, _t as mapMarkdown, vt as mapText, Lt as matchesAny, yt as mergeHomes, dt as messageOf, st as mitText, $ as noBuildOutput, Q as noLocalPaths, g as npmLookup, Gt as packageFolders, J as pagesCalls, Y as pagesSite, Jt as parseConfig, Rt as parseJsonc, A as pathsOf, K as pinnedGitDeps, Tt as prPathFilters, U as pushMainOnly, o as readConfig, zt as readJsonc, bt as readOverlay, Dt as readWorkflow, H as releaseFiles, Bt as replaceLine, ft as repoOf, ct as repositoryIsPublic, I as repositoryOfRemote, V as requiredScripts, z as roadmapOfLine, B as roadmapParses, s as runChecks, c as runCli, l as runFix, Vt as runGit, L as runnerBudget, R as scheduleMinute, w as scriptsOf, F as sharedDocsRule, pt as signaturesOf, j as sourceMain, Ht as specifiersOf, u as summaryMarkdown, Et as summaryName, E as testsRequired, x as trustPolicy, O as tsconfigTest, T as typedFiles, S as typedScripts, _ as unreleasedChange, v as unreleasedChangeRule, Kt as workspaceGlobs, f as workspaceProtocol } from "./run-BhRY6Axj.js";
|
|
@@ -11188,7 +11188,9 @@ const USAGE = `Usage: conventions check [options]
|
|
|
11188
11188
|
|
|
11189
11189
|
--root <folder> The root of the repository. The default is the current folder.
|
|
11190
11190
|
--rule <id> Only this rule. Use it again for more rules.
|
|
11191
|
-
--base <ref> The base commit of the change, for the
|
|
11191
|
+
--base <ref> The base commit of the change, for the rules that examine a change. On a pull request, the
|
|
11192
|
+
rules find it. Outside CI, the default is the default branch of origin.
|
|
11193
|
+
--no-base Do not use the default base.
|
|
11192
11194
|
--json Write the result as JSON.
|
|
11193
11195
|
-h, --help Show this text.
|
|
11194
11196
|
|
|
@@ -11199,6 +11201,30 @@ with a reason, and sets the options of a rule with a reason:
|
|
|
11199
11201
|
"cue-preset": { "ignore": ["packages/web/**"], "reason": "<reason>" },
|
|
11200
11202
|
"workspace-protocol": { "prefix": "workspace:*", "reason": "<reason>" } } }
|
|
11201
11203
|
`;
|
|
11204
|
+
/**
|
|
11205
|
+
* This function gives the default base of a check outside CI: the default branch of origin. So a local check examines the same
|
|
11206
|
+
* added lines as the check of the pull request. On 2026-11-04, two pull requests went red at the first push because a plain local
|
|
11207
|
+
* check skipped those rules. In CI, the event gives the change, so this function gives undefined.
|
|
11208
|
+
*/
|
|
11209
|
+
function localBase(root, env) {
|
|
11210
|
+
if (env["CI"] !== void 0 || env["GITHUB_ACTIONS"] !== void 0) return void 0;
|
|
11211
|
+
const head = runGit(root, [
|
|
11212
|
+
"symbolic-ref",
|
|
11213
|
+
"--quiet",
|
|
11214
|
+
"--short",
|
|
11215
|
+
"refs/remotes/origin/HEAD"
|
|
11216
|
+
])?.trim();
|
|
11217
|
+
for (const ref of [
|
|
11218
|
+
head,
|
|
11219
|
+
"origin/main",
|
|
11220
|
+
"origin/master"
|
|
11221
|
+
]) if (ref !== void 0 && ref !== "" && runGit(root, [
|
|
11222
|
+
"rev-parse",
|
|
11223
|
+
"--verify",
|
|
11224
|
+
"--quiet",
|
|
11225
|
+
`${ref}^{commit}`
|
|
11226
|
+
]) !== void 0) return ref;
|
|
11227
|
+
}
|
|
11202
11228
|
/** An error of the arguments: exit code 2 and the help text. */
|
|
11203
11229
|
var UsageError = class extends Error {};
|
|
11204
11230
|
/** This function starts the bin with the arguments `args`, and gives its exit code. */
|
|
@@ -11210,6 +11236,7 @@ function runCli(args, io) {
|
|
|
11210
11236
|
let json = false;
|
|
11211
11237
|
let root = io.cwd;
|
|
11212
11238
|
let base;
|
|
11239
|
+
let noBase = false;
|
|
11213
11240
|
const only = [];
|
|
11214
11241
|
try {
|
|
11215
11242
|
for (let index = 0; index < args.length; index++) {
|
|
@@ -11226,6 +11253,7 @@ function runCli(args, io) {
|
|
|
11226
11253
|
else if (arg === "--root") root = resolve(io.cwd, value());
|
|
11227
11254
|
else if (arg === "--rule") only.push(value());
|
|
11228
11255
|
else if (arg === "--base") base = value();
|
|
11256
|
+
else if (arg === "--no-base") noBase = true;
|
|
11229
11257
|
else if (arg === "--help" || arg === "-h") {
|
|
11230
11258
|
io.stdout(USAGE);
|
|
11231
11259
|
return 0;
|
|
@@ -11251,11 +11279,12 @@ function runCli(args, io) {
|
|
|
11251
11279
|
let result;
|
|
11252
11280
|
let fixed;
|
|
11253
11281
|
try {
|
|
11282
|
+
const change = noBase ? void 0 : base ?? localBase(root, io.env);
|
|
11254
11283
|
const options = {
|
|
11255
11284
|
root,
|
|
11256
11285
|
only,
|
|
11257
11286
|
env: io.env,
|
|
11258
|
-
...
|
|
11287
|
+
...change === void 0 ? {} : { base: change }
|
|
11259
11288
|
};
|
|
11260
11289
|
if (fix) {
|
|
11261
11290
|
fixed = runFix(options);
|
|
@@ -11317,4 +11346,4 @@ function runMap(args, io) {
|
|
|
11317
11346
|
}
|
|
11318
11347
|
export { noBuildOutput as $, pathsOf as A, DEPENDENCY_FIELDS as At, roadmapParses as B, replaceLine as Bt, configsOfScript as C, convertGate as Ct, hasTests as D, readWorkflow as Dt, testsRequired as E, summaryName as Et, sharedDocsRule as F, keyLine as Ft, isPinned as G, packageFolders as Gt, releaseFiles as H, specifiersOf as Ht, repositoryOfRemote as I, lineOf as It, pagesCalls as J, parseConfig as Jt, pinnedGitDeps as K, workspaceGlobs as Kt, runnerBudget as L, matchesAny as Lt, HOME_TIMEOUT_MS as M, codePackages as Mt, blockHash as N, hasFile as Nt, tsconfigTest as O, STRICT_OPTIONS as Ot, githubFetch as P, inFolder as Pt, noLocalPaths as Q, scheduleMinute as R, parseJsonc as Rt, typedScripts as S, ACTIONS_COMMIT as St, typedFiles as T, prPathFilters as Tt, pushMainOnly as U, globFolders as Ut, requiredScripts as V, runGit as Vt, isGitSpecifier as W, globToRegExp as Wt, DEFAULT_ALLOWED as X, pagesSite as Y, HOME_PATTERNS as Z, unreleasedChange as _, mapMarkdown as _t, listRules as a, licenseFile as at, TRAIN_SCOPES as b, readOverlay as bt, runCli as c, repositoryIsPublic as ct, RULES as d, messageOf as dt, REAL_COMPARE as et, workspaceProtocol as f, repoOf as ft, npmLookup as g, findHomes as gt, UNSHIPPED_FILES as h, MAP_RULE as ht, formatResult as i, authorOf as it, sourceMain as j, cleanPath as jt, isSourcePath as k, cuePreset as kt, runFix as l, declaredName as lt, SHIPPED_FIELDS as m, HOMES as mt, annotations as n, mainCheck as nt, readConfig as o, licenseFileOf as ot, NPM_REGISTRY as p, signaturesOf as pt, PAGES_WORKFLOWS as q, defaultOptions as qt, createContext as r, LICENSE_TEXTS as rt, runChecks as s, mitText as st, USAGE as t, hasImportMetaMain as tt, summaryMarkdown as u, homePackage as ut, unreleasedChangeRule as v, mapText as vt, scriptsOf as w, gateTrigger as wt, trustPolicy as x, HOME_EXPORTS as xt, IGNORE_AFTER as y, mergeHomes as yt, roadmapOfLine as z, readJsonc as zt };
|
|
11319
11348
|
|
|
11320
|
-
//# sourceMappingURL=run-
|
|
11349
|
+
//# sourceMappingURL=run-BhRY6Axj.js.map
|