@homeflare/config 0.11.1 → 0.12.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/dist/repo-shape/dependabot.d.ts +11 -17
- package/dist/repo-shape/dependabot.d.ts.map +1 -1
- package/dist/repo-shape/drift.d.ts +1 -1
- package/dist/repo-shape/drift.d.ts.map +1 -1
- package/dist/repo-shape/guards.d.ts +5 -0
- package/dist/repo-shape/guards.d.ts.map +1 -1
- package/dist/repo-shape/refresh.d.ts +5 -1
- package/dist/repo-shape/refresh.d.ts.map +1 -1
- package/dist/repo-shape/render.d.ts.map +1 -1
- package/dist/repo-shape/retired.d.ts +54 -0
- package/dist/repo-shape/retired.d.ts.map +1 -0
- package/dist/repo-shape/shape.d.ts +1 -1
- package/dist/repo-shape/shape.d.ts.map +1 -1
- package/dist/repo-shape.d.ts +3 -4
- package/dist/repo-shape.d.ts.map +1 -1
- package/dist/repo-shape.js +167 -205
- package/dist/repo-shape.js.map +10 -10
- package/dist/versions.js +7 -1
- package/dist/versions.js.map +4 -4
- package/docs/repo-shape-dependabot.md +31 -43
- package/docs/repo-shape-retired.md +75 -0
- package/docs/repo-shape.md +11 -0
- package/package.json +1 -1
- package/src/repo-shape/dependabot.ts +23 -38
- package/src/repo-shape/drift.ts +19 -1
- package/src/repo-shape/guards.ts +11 -0
- package/src/repo-shape/refresh.ts +55 -2
- package/src/repo-shape/render.ts +0 -3
- package/src/repo-shape/retired.ts +113 -0
- package/src/repo-shape/shape.ts +0 -1
- package/src/repo-shape.ts +9 -4
- package/dist/repo-shape/automerge.d.ts +0 -17
- package/dist/repo-shape/automerge.d.ts.map +0 -1
- package/src/repo-shape/automerge.ts +0 -144
|
@@ -1,33 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `.github/dependabot.yml`, rendered
|
|
2
|
+
* `.github/dependabot.yml`, rendered.
|
|
3
3
|
*
|
|
4
4
|
* ★ MEASURED BEFORE IT WAS RENDERED (2026-09-22): 1 of 14 repositories had a Dependabot
|
|
5
5
|
* config. Twelve took no dependency or Action updates at all, and nothing said so.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
7
|
+
* ⛔ `@homeflare/*` IS IGNORED HERE, NOT GROUPED (retired 2026-09-23, kit auto-bumper
|
|
8
|
+
* design, Tim). A `homeflare` group and a rendered `dependabot-automerge.yml`
|
|
9
|
+
* used to carry kit releases into a consumer; both are gone. `homeflare-bumper` does
|
|
10
|
+
* that job now, over `workflow_dispatch` from this repo's own release, with a schedule
|
|
11
|
+
* backstop — a Dependabot bump running at the same time would open a SECOND, competing
|
|
12
|
+
* pull request for the same version bump. The `ignore` entry below is what stops that:
|
|
13
|
+
* Dependabot never proposes `@homeflare/*` at all, so there is only ever one bump PR.
|
|
12
14
|
*
|
|
13
15
|
* Every Dependabot claim below was read from GitHub's docs or dependabot-core's source on
|
|
14
16
|
* 2026-09-22 (dependabot-core v0.397.0); `docs/repo-shape-dependabot.md` has the citations.
|
|
15
17
|
*/
|
|
16
18
|
import type { RepoShape } from './shape.ts';
|
|
17
|
-
/**
|
|
18
|
-
* The group's identifier. ⛔ IT IS ALSO HALF OF A BRANCH NAME the auto-merge workflow
|
|
19
|
-
* matches — dependabot-core names a group's branch `dependabot/bun/<group>-<10 hex>`
|
|
20
|
-
* (branch_namer/dependency_group_strategy.rb) — so it is exported, not retyped there.
|
|
21
|
-
* Dependabot requires an identifier that starts and ends with a letter.
|
|
22
|
-
*/
|
|
23
|
-
export declare const HOMEFLARE_GROUP = "homeflare";
|
|
24
19
|
/** The first-party scope. Every package the kit publishes is under it. */
|
|
25
20
|
export declare const HOMEFLARE_PATTERN = "@homeflare/*";
|
|
26
21
|
/**
|
|
27
|
-
* ★ SEVEN DAYS
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* is also the supply-chain half — a compromised release is usually yanked within days.
|
|
22
|
+
* ★ SEVEN DAYS. A third-party release is proposed once it is a week old rather than on
|
|
23
|
+
* Dependabot's undocumented-but-real 3-day default — that is also the supply-chain
|
|
24
|
+
* half, since a compromised release is usually yanked within days.
|
|
31
25
|
*/
|
|
32
26
|
export declare const THIRD_PARTY_COOLDOWN_DAYS = 7;
|
|
33
27
|
/** `.github/dependabot.yml`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependabot.d.ts","sourceRoot":"","sources":["../../src/repo-shape/dependabot.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dependabot.d.ts","sourceRoot":"","sources":["../../src/repo-shape/dependabot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,gCAAgC;AAChC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CA0FzD"}
|
|
@@ -4,7 +4,7 @@ export type Problem = string;
|
|
|
4
4
|
/** The command that makes a difference go away. Printed with every drift problem. */
|
|
5
5
|
export declare const REFRESH_COMMAND = "bun run repo-shape:refresh";
|
|
6
6
|
export interface DriftReport {
|
|
7
|
-
/** Empty when the committed files are the rendered ones. */
|
|
7
|
+
/** Empty when the committed files are the rendered ones and no retired path lingers. */
|
|
8
8
|
readonly problems: readonly Problem[];
|
|
9
9
|
/** Paths whose committed text differs from the render, excluding excepted files. */
|
|
10
10
|
readonly drifted: readonly string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/repo-shape/drift.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drift.d.ts","sourceRoot":"","sources":["../../src/repo-shape/drift.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAgB,SAAS,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE9E,wFAAwF;AACxF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,qFAAqF;AACrF,eAAO,MAAM,eAAe,+BAA+B,CAAC;AA6D5D,MAAM,WAAW,WAAW;IAC1B,wFAAwF;IACxF,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,oFAAoF;IACpF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;CAClD;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CA8BjG;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,MAAM,EAAE,CAKpE"}
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
export declare function requireNonEmpty(field: string, value: string): string;
|
|
14
14
|
export declare function requireSentence(field: string, value: string): string;
|
|
15
15
|
export declare function requireIsoDate(value: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* A retired file names the `@homeflare/config` release that stopped rendering it, so
|
|
18
|
+
* anyone reading `retired.ts` can find the changeset that made the call.
|
|
19
|
+
*/
|
|
20
|
+
export declare function requireSemver(value: string): string;
|
|
16
21
|
/**
|
|
17
22
|
* ⛔ A MAJOR, NOT A RANGE, AND NOT A FLOAT. `actions/setup-node` takes `node-version: 24`
|
|
18
23
|
* and resolves the newest 24.x; a fractional or negative value renders YAML the action
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/repo-shape/guards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASlD"}
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/repo-shape/guards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAQpE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,oEAAoE;AACpE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CASlD"}
|
|
@@ -6,8 +6,12 @@ export interface RefreshResult {
|
|
|
6
6
|
readonly unchanged: readonly string[];
|
|
7
7
|
/** Paths skipped because the shape declares an exception for them. */
|
|
8
8
|
readonly skipped: readonly string[];
|
|
9
|
+
/** Retired paths deleted because they still carried the generated-file header. */
|
|
10
|
+
readonly removed: readonly string[];
|
|
11
|
+
/** Retired paths left alone because they did not — provably hand-written, not ours. */
|
|
12
|
+
readonly refused: readonly string[];
|
|
9
13
|
}
|
|
10
|
-
/** Write a repository's rendered files into `projectDir
|
|
14
|
+
/** Write a repository's rendered files into `projectDir`, and clear its rendered fossils. */
|
|
11
15
|
export declare function refreshRepoShape(projectDir: string, shape: RepoShape): Promise<RefreshResult>;
|
|
12
16
|
/**
|
|
13
17
|
* The `repo-shape:refresh` entry point. `--check` reports drift and exits non-zero
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../src/repo-shape/refresh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"refresh.d.ts","sourceRoot":"","sources":["../../src/repo-shape/refresh.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,SAAS,EAAc,MAAM,YAAY,CAAC;AAGxD,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,6BAA6B;IAC7B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,kFAAkF;IAClF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,6FAA6F;AAC7F,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,GACf,OAAO,CAAC,aAAa,CAAC,CAwBxB;AA4CD;;;;GAIG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,SAAS,MAAM,EAAE,GACtB,OAAO,CAAC,MAAM,CAAC,CA2CjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/repo-shape/render.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/repo-shape/render.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE1D,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CAClC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,CAe9D;AAED,0EAA0E;AAC1E,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAMjD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A path `@homeflare/config` no longer renders, but may still find committed in a
|
|
3
|
+
* repository that refreshed before the retirement. Extend this union at the same time a
|
|
4
|
+
* path is added to `RETIRED_FILES` below — never reuse one already there.
|
|
5
|
+
*/
|
|
6
|
+
export type RetiredPath = '.github/workflows/dependabot-automerge.yml';
|
|
7
|
+
export interface RetiredFile {
|
|
8
|
+
/** The path this package rendered, once. */
|
|
9
|
+
readonly path: RetiredPath;
|
|
10
|
+
/** The `@homeflare/config` version whose release stopped rendering it. */
|
|
11
|
+
readonly retiredIn: string;
|
|
12
|
+
/** Why, and which kit change did it — written at the retirement, like `except()`'s reason. */
|
|
13
|
+
readonly reason: string;
|
|
14
|
+
}
|
|
15
|
+
/** Every path `@homeflare/config` used to render, oldest retirement first. */
|
|
16
|
+
export declare const RETIRED_FILES: readonly RetiredFile[];
|
|
17
|
+
/**
|
|
18
|
+
* The substring every generated file's header has carried since this package's first
|
|
19
|
+
* renderer. Kept independent of the four current renderers' own copies of this text
|
|
20
|
+
* (`ci.ts`, `security.ts`, `dependabot.ts`, `companions.ts`) on purpose: a future wording
|
|
21
|
+
* change to the live header must not stop this module recognising a file rendered under
|
|
22
|
+
* the old one.
|
|
23
|
+
*/
|
|
24
|
+
export declare const GENERATED_FILE_MARKER = "\uD83E\uDD16 RENDERED BY @homeflare/config";
|
|
25
|
+
/**
|
|
26
|
+
* Whether `content` is provably a file this package once wrote.
|
|
27
|
+
*
|
|
28
|
+
* ⚠️ THE MARKER HAS TO START A LINE OF ITS OWN, NOT MERELY OCCUR SOMEWHERE IN THE TEXT.
|
|
29
|
+
* Every real header carries it as a whole comment line — `# 🤖 RENDERED BY
|
|
30
|
+
* @homeflare/config — DO NOT EDIT…`, third line in every renderer in this directory, so
|
|
31
|
+
* this does not require it to be the FIRST line — but a bare `content.includes(...)`
|
|
32
|
+
* would also match a hand-written file that merely *talks about* the marker, e.g. a
|
|
33
|
+
* comment reading "this file used to be 🤖 RENDERED BY @homeflare/config before it was
|
|
34
|
+
* retired; keeping it by hand now" — adversarial review, 2026-09-24, caught this exact
|
|
35
|
+
* case before it shipped. Requiring the marker at the start of a trimmed line is what a
|
|
36
|
+
* sentence built around it, rather than a header line consisting of it, cannot satisfy.
|
|
37
|
+
* `repo-shape-retired.test.ts` asserts the mid-sentence form stays refused.
|
|
38
|
+
*
|
|
39
|
+
* ⚠️ STILL A PREFIX CHECK ON THAT LINE, NOT A FULL-LINE EXACT MATCH. The retired renderer
|
|
40
|
+
* varied its trailing header prose by `shape.runner` and by repository name, and a
|
|
41
|
+
* future wording change to what follows the marker on a live renderer's header must not
|
|
42
|
+
* stop this recognising a file rendered under the old wording — only the marker itself,
|
|
43
|
+
* `🤖 RENDERED BY @homeflare/config`, has been constant across every renderer this
|
|
44
|
+
* package has ever shipped.
|
|
45
|
+
*/
|
|
46
|
+
export declare function wasRenderedByUs(content: string): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* The message `driftInRepoShape` reports for a retired path that is still present, and
|
|
49
|
+
* `repoShapeCli --check` prints verbatim. Names the fix command either way — whether that
|
|
50
|
+
* command can actually remove the file depends on `wasRenderedByUs`, which only
|
|
51
|
+
* `refreshRepoShape` (holding the file's contents) can decide.
|
|
52
|
+
*/
|
|
53
|
+
export declare function retiredFileProblem(file: RetiredFile): string;
|
|
54
|
+
//# sourceMappingURL=retired.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retired.d.ts","sourceRoot":"","sources":["../../src/repo-shape/retired.ts"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,4CAA4C,CAAC;AAEvE,MAAM,WAAW,WAAW;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8FAA8F;IAC9F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAUD,8EAA8E;AAC9E,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAQ/C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,+CAAqC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAIxD;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAK5D"}
|
|
@@ -69,7 +69,7 @@ export type JobStep = {
|
|
|
69
69
|
*/
|
|
70
70
|
export type Stated<R extends string> = '' extends R ? never : R;
|
|
71
71
|
/** Paths this package renders. A deviation names one of these, not an arbitrary file. */
|
|
72
|
-
export type RenderedPath = '.changeset/config.json' | '.github/actionlint.yaml' | '.github/dependabot.yml' | '.github/workflows/ci.yml' | '.github/workflows/
|
|
72
|
+
export type RenderedPath = '.changeset/config.json' | '.github/actionlint.yaml' | '.github/dependabot.yml' | '.github/workflows/ci.yml' | '.github/workflows/security.yml';
|
|
73
73
|
export interface RepoShapeException {
|
|
74
74
|
/** The rendered file this repository does not take from the renderer. */
|
|
75
75
|
readonly file: RenderedPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../src/repo-shape/shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAWH,qCAAqC;AACrC,MAAM,MAAM,UAAU;AACpB;;;GAGG;AACD,MAAM;AACR,kFAAkF;GAChF,QAAQ,CAAC;AAEb,4EAA4E;AAC5E,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACjD,GAAG,CACA;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IAC1D,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,IAAI,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shape.d.ts
CHANGED
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
* That one file gives the repository:
|
|
18
18
|
*
|
|
19
19
|
* · its FILES — `bun run repo-shape:refresh` writes ci.yml, security.yml,
|
|
20
|
-
*
|
|
21
|
-
* the changeset config;
|
|
20
|
+
* actionlint.yaml, dependabot.yml and the changeset config;
|
|
22
21
|
* · its DRIFT GATE — a `bun:test` calling `driftInRepoShape` fails on a hand edit;
|
|
23
22
|
* · its SETTINGS — `renderRepoShape(shape).policy` is the options object
|
|
24
23
|
* `@homeflare/alchemy`'s `declareRepoPolicy` takes, so the ruleset
|
|
@@ -34,13 +33,13 @@
|
|
|
34
33
|
* including the ones with no Alchemy stack, so it belongs to the package they all
|
|
35
34
|
* already have — and it takes no dependency on Alchemy or Effect to get there.
|
|
36
35
|
*/
|
|
37
|
-
export { GROUP_BRANCH, GROUP_BRANCH_PREFIX, renderAutomerge } from './repo-shape/automerge.ts';
|
|
38
36
|
export { renderCi, ACTIONLINT_VERSION, BUN_VERSION } from './repo-shape/ci.ts';
|
|
39
37
|
export { renderActionlintConfig, renderChangesetConfig } from './repo-shape/companions.ts';
|
|
40
|
-
export {
|
|
38
|
+
export { HOMEFLARE_PATTERN, renderDependabot, THIRD_PARTY_COOLDOWN_DAYS, } from './repo-shape/dependabot.ts';
|
|
41
39
|
export { type DriftReport, type Problem, driftInRepoShape, exceptionSummary, REFRESH_COMMAND, } from './repo-shape/drift.ts';
|
|
42
40
|
export { type RefreshResult, refreshRepoShape, repoShapeCli } from './repo-shape/refresh.ts';
|
|
43
41
|
export { type RenderedRepo, type RepoShapePolicy, RENDERED_PATHS, renderRepoShape, } from './repo-shape/render.ts';
|
|
42
|
+
export { type RetiredFile, type RetiredPath, GENERATED_FILE_MARKER, RETIRED_FILES, retiredFileProblem, wasRenderedByUs, } from './repo-shape/retired.ts';
|
|
44
43
|
export { renderSecurity } from './repo-shape/security.ts';
|
|
45
44
|
export { type ExtraJob, type JobStep, type RenderedPath, type RepoRunner, type RepoShape, type RepoShapeException, type Stated, except, extraJob, isExcepted, runsOn, } from './repo-shape/shape.ts';
|
|
46
45
|
//# sourceMappingURL=repo-shape.d.ts.map
|
package/dist/repo-shape.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-shape.d.ts","sourceRoot":"","sources":["../src/repo-shape.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"repo-shape.d.ts","sourceRoot":"","sources":["../src/repo-shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,OAAO,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,cAAc,EACd,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,qBAAqB,EACrB,aAAa,EACb,kBAAkB,EAClB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,MAAM,EACX,MAAM,EACN,QAAQ,EACR,UAAU,EACV,MAAM,GACP,MAAM,uBAAuB,CAAC"}
|