@mark1russell7/conventions 0.40.8 → 0.41.1
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/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -272,8 +272,8 @@ interface Home {
|
|
|
272
272
|
/** A note: the code that goes to another home, or a known split. */
|
|
273
273
|
readonly note?: string;
|
|
274
274
|
}
|
|
275
|
-
/** The rule of the map. Each
|
|
276
|
-
export declare const MAP_RULE
|
|
275
|
+
/** The rule of the map. Each change and each review applies it. */
|
|
276
|
+
export declare const MAP_RULE: string;
|
|
277
277
|
/** The public homes. Each package that other code can use has one area. */
|
|
278
278
|
export declare const HOMES: readonly Home[];
|
|
279
279
|
/** A file of more homes, for example the private repositories, in the shape `{ "homes": Home[] }`. */
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unreleasedChangeRule, $t as findHomes, A as typedFiles, An as STRICT_OPTIONS, At as nameMatches, B as roadmapParses, Bn as matchesAny, Bt as authorOf, C as versionTitle, Cn as convertGate, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as gateAfterCancel, Dt as isCommonUse, E as trustPolicy, En as summaryName, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as codePackages, Ft as hasImportMetaMain, G as publishedMinor, Gn as specifiersOf, Gt as declaredName, H as releaseFiles, Hn as readJsonc, Ht as licenseFileOf, I as blockHash, In as hasFile, It as mainCheck, J as NPM_REGISTRY, Jt as repoOf, K as publishedMinorRule, Kn as defaultOptions, Kt as homePackage, L as githubFetch, Ln as inFolder, Lt as coverageProvider, M as isSourcePath, Mn as DEPENDENCY_FIELDS, Mt as pathNameHit, N as pathsOf, Nn as RULE_WARN_DAYS, Nt as noBuildOutput, O as configsOfScript, On as readAction, Ot as lineNameHit, P as sourceMain, Pn as cleanPath, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as MAP_RULE, R as sharedDocsRule, Rn as keyLine, Rt as apiReportScript, S as setVersions, Sn as ACTIONS_COMMIT, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as prPathFilters, Tt as firstNameMatch, U as lockedVersions, Un as replaceLine, Ut as mitText, V as requiredScripts, Vn as parseJsonc, Vt as licenseFile, W as minorOf, Wn as runGit, Wt as repositoryIsPublic, X as UNSHIPPED_FILES, Xt as signaturesOf, Y as SHIPPED_FIELDS, Yt as reposOf, Z as npmLookup, Zt as HOMES, _ as workspaceProtocol, _n as SECURITY_SCAN_INPUTS, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as SERVICE_PACKAGE, at as repositoryOfRemote, b as yamlFaults, bn as securityOneJob, bt as privateNamesFile, c as runCli, cn as hasTests, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_CI, dt as pagesSite, en as mapMarkdown, et as pipeFails, f as NO_READ_LINE, fn as SHARED_WORKFLOWS, ft as packNoBuildinfo, g as RULES, gn as SECURITY_SCAN_COMMIT, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as setupCue, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as HOME_EXPORTS, it as pagesAfterRelease, j as testsRequired, jn as cuePreset, jt as parsePrivateNames, k as scriptsOf, kn as readWorkflow, kt as lineNameHits, l as runFix, ln as tsconfigTest, lt as PAGES_WORKFLOWS, m as installHook, mn as sharedCi, mt as HOME_PATTERNS, n as annotations, nn as mergeHomes, nt as isPinned, o as readConfig, on as runCalls, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as callsSharedCi, pt as DEFAULT_ALLOWED, q as reachOf, qn as parseConfig, qt as messageOf, r as createContext, rn as readOverlay, rt as pinnedGitDeps, s as runChecks, sn as serviceRunMain, st as scheduleMinute, t as USAGE, tn as mapText, tt as isGitSpecifier, u as summaryMarkdown, un as SHARED_ACTIONS, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_TIMEOUT_MINUTES, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateTrigger, wt as PrivateNameListError, x as namedVersions, xn as withOneJob, xt as privatePatterns, y as workflowParses, yn as securityCallers, yt as noLocalPaths, z as roadmapOfLine, zn as lineOf, zt as LICENSE_TEXTS } from "./run-
|
|
1
|
+
import { $ as unreleasedChangeRule, $t as findHomes, A as typedFiles, An as STRICT_OPTIONS, At as nameMatches, B as roadmapParses, Bn as matchesAny, Bt as authorOf, C as versionTitle, Cn as convertGate, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as gateAfterCancel, Dt as isCommonUse, E as trustPolicy, En as summaryName, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as codePackages, Ft as hasImportMetaMain, G as publishedMinor, Gn as specifiersOf, Gt as declaredName, H as releaseFiles, Hn as readJsonc, Ht as licenseFileOf, I as blockHash, In as hasFile, It as mainCheck, J as NPM_REGISTRY, Jt as repoOf, K as publishedMinorRule, Kn as defaultOptions, Kt as homePackage, L as githubFetch, Ln as inFolder, Lt as coverageProvider, M as isSourcePath, Mn as DEPENDENCY_FIELDS, Mt as pathNameHit, N as pathsOf, Nn as RULE_WARN_DAYS, Nt as noBuildOutput, O as configsOfScript, On as readAction, Ot as lineNameHit, P as sourceMain, Pn as cleanPath, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as MAP_RULE, R as sharedDocsRule, Rn as keyLine, Rt as apiReportScript, S as setVersions, Sn as ACTIONS_COMMIT, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as prPathFilters, Tt as firstNameMatch, U as lockedVersions, Un as replaceLine, Ut as mitText, V as requiredScripts, Vn as parseJsonc, Vt as licenseFile, W as minorOf, Wn as runGit, Wt as repositoryIsPublic, X as UNSHIPPED_FILES, Xt as signaturesOf, Y as SHIPPED_FIELDS, Yt as reposOf, Z as npmLookup, Zt as HOMES, _ as workspaceProtocol, _n as SECURITY_SCAN_INPUTS, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as SERVICE_PACKAGE, at as repositoryOfRemote, b as yamlFaults, bn as securityOneJob, bt as privateNamesFile, c as runCli, cn as hasTests, ct as pushMainOnly, d as HOOK_MARKER, dn as SHARED_CI, dt as pagesSite, en as mapMarkdown, et as pipeFails, f as NO_READ_LINE, fn as SHARED_WORKFLOWS, ft as packNoBuildinfo, g as RULES, gn as SECURITY_SCAN_COMMIT, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as setupCue, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as HOME_EXPORTS, it as pagesAfterRelease, j as testsRequired, jn as cuePreset, jt as parsePrivateNames, k as scriptsOf, kn as readWorkflow, kt as lineNameHits, l as runFix, ln as tsconfigTest, lt as PAGES_WORKFLOWS, m as installHook, mn as sharedCi, mt as HOME_PATTERNS, n as annotations, nn as mergeHomes, nt as isPinned, o as readConfig, on as runCalls, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as callsSharedCi, pt as DEFAULT_ALLOWED, q as reachOf, qn as parseConfig, qt as messageOf, r as createContext, rn as readOverlay, rt as pinnedGitDeps, s as runChecks, sn as serviceRunMain, st as scheduleMinute, t as USAGE, tn as mapText, tt as isGitSpecifier, u as summaryMarkdown, un as SHARED_ACTIONS, ut as pagesCalls, v as GITHUB_YAML, vn as SECURITY_TIMEOUT_MINUTES, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateTrigger, wt as PrivateNameListError, x as namedVersions, xn as withOneJob, xt as privatePatterns, y as workflowParses, yn as securityCallers, yt as noLocalPaths, z as roadmapOfLine, zn as lineOf, zt as LICENSE_TEXTS } from "./run-aNVZ1j7b.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
|
/**
|
|
@@ -2235,6 +2235,7 @@ const SHARED_ACTIONS = [
|
|
|
2235
2235
|
"gate-summary",
|
|
2236
2236
|
"green-main",
|
|
2237
2237
|
"npm-publish",
|
|
2238
|
+
"release-check",
|
|
2238
2239
|
"security-scan",
|
|
2239
2240
|
"setup-cue",
|
|
2240
2241
|
"setup-playwright",
|
|
@@ -8228,8 +8229,8 @@ const HOME_EXPORTS = {
|
|
|
8228
8229
|
}
|
|
8229
8230
|
};
|
|
8230
8231
|
// src/map.ts
|
|
8231
|
-
/** The rule of the map. Each
|
|
8232
|
-
const MAP_RULE = "Before you write a helper, find its home in this map. If the home does not have the function, add it to the home, in a pull request of the home repository. Do not make a local copy, a new package or a new repository for an area that has a home: that needs the
|
|
8232
|
+
/** The rule of the map. Each change and each review applies it. */
|
|
8233
|
+
const MAP_RULE = "Before you write a helper, find its home in this map. If the home does not have the function, add it to the home, in a pull request of the home repository. Do not make a local copy, a new package or a new repository for an area that has a home: that needs the maintainer. A home that is not on npm is used with workspace:* inside its own repository. In another repository, a github: specifier pinned to a commit works only for a package that keeps its built files in git. For any other package, wait for its first npm publish (ask the maintainer). If no area fits, ask the maintainer for a home before you write the code.";
|
|
8233
8234
|
/** The public homes. Each package that other code can use has one area. */
|
|
8234
8235
|
const HOMES = [
|
|
8235
8236
|
{
|
|
@@ -9210,7 +9211,7 @@ function mapMarkdown(homes = HOMES) {
|
|
|
9210
9211
|
}
|
|
9211
9212
|
/** This function writes the homes as plain text for a terminal. */
|
|
9212
9213
|
function mapText(homes) {
|
|
9213
|
-
if (homes.length === 0) return "No area matches. Ask the
|
|
9214
|
+
if (homes.length === 0) return "No area matches. Ask the maintainer for a home before you write the code.\n";
|
|
9214
9215
|
return homes.map((home) => {
|
|
9215
9216
|
const where = home.packages.length > 0 ? home.packages.join(", ") : home.repo;
|
|
9216
9217
|
const lines = [
|
|
@@ -15077,4 +15078,4 @@ function runHook(args, io) {
|
|
|
15077
15078
|
}
|
|
15078
15079
|
export { unreleasedChangeRule as $, findHomes as $t, typedFiles as A, STRICT_OPTIONS as An, nameMatches as At, roadmapParses as B, matchesAny as Bn, authorOf as Bt, versionTitle as C, convertGate as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, gateAfterCancel as Dn, isCommonUse as Dt, trustPolicy as E, summaryName as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, codePackages as Fn, hasImportMetaMain as Ft, publishedMinor as G, specifiersOf as Gn, declaredName as Gt, releaseFiles as H, readJsonc as Hn, licenseFileOf as Ht, blockHash as I, hasFile as In, mainCheck as It, NPM_REGISTRY as J, repoOf as Jt, publishedMinorRule as K, defaultOptions as Kn, homePackage as Kt, githubFetch as L, inFolder as Ln, coverageProvider as Lt, isSourcePath as M, DEPENDENCY_FIELDS as Mn, pathNameHit as Mt, pathsOf as N, RULE_WARN_DAYS as Nn, noBuildOutput as Nt, configsOfScript as O, readAction as On, lineNameHit as Ot, sourceMain as P, cleanPath as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, MAP_RULE as Qt, sharedDocsRule as R, keyLine as Rn, apiReportScript as Rt, setVersions as S, ACTIONS_COMMIT as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, prPathFilters as Tn, firstNameMatch as Tt, lockedVersions as U, replaceLine as Un, mitText as Ut, requiredScripts as V, parseJsonc as Vn, licenseFile as Vt, minorOf as W, runGit as Wn, repositoryIsPublic as Wt, UNSHIPPED_FILES as X, signaturesOf as Xt, SHIPPED_FIELDS as Y, reposOf as Yt, npmLookup as Z, HOMES as Zt, workspaceProtocol as _, SECURITY_SCAN_INPUTS as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, SERVICE_PACKAGE as an, repositoryOfRemote as at, yamlFaults as b, securityOneJob as bn, privateNamesFile as bt, runCli as c, hasTests as cn, pushMainOnly as ct, HOOK_MARKER as d, SHARED_CI as dn, pagesSite as dt, mapMarkdown as en, pipeFails as et, NO_READ_LINE as f, SHARED_WORKFLOWS as fn, packNoBuildinfo as ft, RULES as g, SECURITY_SCAN_COMMIT as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, setupCue as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, HOME_EXPORTS as in, pagesAfterRelease as it, testsRequired as j, cuePreset as jn, parsePrivateNames as jt, scriptsOf as k, readWorkflow as kn, lineNameHits as kt, runFix as l, tsconfigTest as ln, PAGES_WORKFLOWS as lt, installHook as m, sharedCi as mn, HOME_PATTERNS as mt, annotations as n, mergeHomes as nn, isPinned as nt, readConfig as o, runCalls as on, runnerBudget as ot, PRE_PUSH_HOOK as p, callsSharedCi as pn, DEFAULT_ALLOWED as pt, reachOf as q, parseConfig as qn, messageOf as qt, createContext as r, readOverlay as rn, pinnedGitDeps as rt, runChecks as s, serviceRunMain as sn, scheduleMinute as st, USAGE as t, mapText as tn, isGitSpecifier as tt, summaryMarkdown as u, SHARED_ACTIONS as un, pagesCalls as ut, GITHUB_YAML as v, SECURITY_TIMEOUT_MINUTES as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateTrigger as wn, PrivateNameListError as wt, namedVersions as x, withOneJob as xn, privatePatterns as xt, workflowParses as y, securityCallers as yn, noLocalPaths as yt, roadmapOfLine as z, lineOf as zn, LICENSE_TEXTS as zt };
|
|
15079
15080
|
|
|
15080
|
-
//# sourceMappingURL=run-
|
|
15081
|
+
//# sourceMappingURL=run-aNVZ1j7b.js.map
|