@theholocron/astromech 5.0.0-alpha.277 → 5.0.0-alpha.279
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/index.d.mts +89 -5
- package/dist/index.mjs +80 -11
- package/package.json +12 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { r as TasksConfig } from "./schema.type-C-3fZESa.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* How strictly a repo enforces doc-comment coverage of its public API (`repoValidation.docsCoverage`, spec
|
|
4
|
+
* `tech-api-docs`): `off` (the default) does nothing, `warn` reports without failing and posts informational Codecov
|
|
5
|
+
* statuses, `required` fails the check and posts statuses that are not informational.
|
|
6
|
+
*/
|
|
7
|
+
type DocsCoverageMode = "off" | "warn" | "required";
|
|
8
|
+
/** Per-repo choices that change what the `codecov.yml` generator writes. */
|
|
9
|
+
interface CodecovConfigOptions {
|
|
10
|
+
/** Adds the `documentation` flag and its statuses to `codecov.yml`. Default `off`: nothing is added. */
|
|
11
|
+
docsCoverage?: DocsCoverageMode;
|
|
12
|
+
}
|
|
13
|
+
/** A workspace package as the `codecov.yml` generator sees it: the flag and component it gets, and where it lives. */
|
|
2
14
|
interface WorkspacePackage$1 {
|
|
15
|
+
/** The package's folder name, used as its Codecov flag and component id. */
|
|
3
16
|
slug: string;
|
|
17
|
+
/** The package's npm name. */
|
|
4
18
|
name: string;
|
|
5
19
|
/** The workspace root the package was discovered under (`packages`, `apps`, `clients`, ...). Defaults to `"packages"`. */
|
|
6
20
|
dir?: string;
|
|
@@ -10,6 +24,7 @@ interface WorkspacePackage$1 {
|
|
|
10
24
|
*/
|
|
11
25
|
path?: string;
|
|
12
26
|
}
|
|
27
|
+
/** The YAML list of components, one per package and grouped by workspace root, that `codecov.yml` carries. */
|
|
13
28
|
export declare function codecovComponentBlock(packages: WorkspacePackage$1[]): string;
|
|
14
29
|
/**
|
|
15
30
|
* Ensure every codecov status default carries `if_not_found: success`, so an
|
|
@@ -28,7 +43,11 @@ export declare function ensureIfNotFound(yaml: string): string;
|
|
|
28
43
|
* `lcovPaths` names another for that slug (a package whose test runner writes it elsewhere).
|
|
29
44
|
*/
|
|
30
45
|
export declare function codecovUploads(packages: WorkspacePackage$1[], lcovPaths?: Record<string, string>): string;
|
|
31
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Brings an existing `codecov.yml` up to date with the workspace packages (flags, components and status rules) and the
|
|
48
|
+
* repo's `options`, keeping every hand edit.
|
|
49
|
+
*/
|
|
50
|
+
export declare function mergeCodecovComponents(existing: string, packages: WorkspacePackage$1[], options?: CodecovConfigOptions): string;
|
|
32
51
|
/**
|
|
33
52
|
* Every package the repo's `pnpm-workspace.yaml` declares (the default roots
|
|
34
53
|
* when it declares none), sorted by location, so each group folder (`cli/`, `plugins/`, ...) stays together. Every one needs a
|
|
@@ -40,13 +59,13 @@ export declare function mergeCodecovComponents(existing: string, packages: Works
|
|
|
40
59
|
*/
|
|
41
60
|
export declare function readWorkspacePackages(repoRoot: string): WorkspacePackage$1[];
|
|
42
61
|
/** A brand-new `codecov.yml` — the scaffold header + the base template + this repo's component list. */
|
|
43
|
-
export declare function createCodecovConfig(packages: WorkspacePackage$1[]): string;
|
|
62
|
+
export declare function createCodecovConfig(packages: WorkspacePackage$1[], options?: CodecovConfigOptions): string;
|
|
44
63
|
/**
|
|
45
64
|
* The full pipeline `holocron repo setup` needs: read this repo's public
|
|
46
65
|
* `packages/*`, then either merge them into an `existing` `codecov.yml` or
|
|
47
66
|
* scaffold a new one.
|
|
48
67
|
*/
|
|
49
|
-
export declare function codecovConfig(repoRoot: string, existing: string | null): string;
|
|
68
|
+
export declare function codecovConfig(repoRoot: string, existing: string | null, options?: CodecovConfigOptions): string;
|
|
50
69
|
/**
|
|
51
70
|
* The **reusable** GitHub Actions surface pushed to `theholocron/.github` by
|
|
52
71
|
* `holocron sync github` — the `workflow_call` implementations and composite
|
|
@@ -72,6 +91,7 @@ export declare const WORKFLOW_TEMPLATE_PROPERTIES: Record<string, string>;
|
|
|
72
91
|
* `.properties.json` files are left bare (native JSON, not a commented file).
|
|
73
92
|
*/
|
|
74
93
|
export declare function reusableTemplates(): Map<string, string>;
|
|
94
|
+
/** Where a repo's pull-request previews are deployed. */
|
|
75
95
|
interface PreviewConfig {
|
|
76
96
|
/** Cloudflare Pages project name shared across all repos for previews. */
|
|
77
97
|
project: string;
|
|
@@ -94,7 +114,9 @@ interface OrgContext {
|
|
|
94
114
|
/** Project name — injected as the `name` input to the deploy reusable when `docs: true`. */
|
|
95
115
|
repoName?: string;
|
|
96
116
|
}
|
|
117
|
+
/** The reusable-workflow thin-caller templates, by task name. */
|
|
97
118
|
export declare const WORKFLOW_TEMPLATES: Record<string, string>;
|
|
119
|
+
/** The task names that have a thin-caller workflow template. */
|
|
98
120
|
export declare const KNOWN_WORKFLOWS: Set<string>;
|
|
99
121
|
/**
|
|
100
122
|
* The GitHub status-check context a `required` task contributes to branch
|
|
@@ -177,6 +199,7 @@ export declare function normalizeWorkflowWith(raw: Record<string, unknown>): Rec
|
|
|
177
199
|
export declare function deriveDeployPaths(raw: Record<string, unknown>): string[];
|
|
178
200
|
/** Ordered (task contexts in {@link CI_ORDER}, then extras), de-duplicated. */
|
|
179
201
|
export declare function requiredChecks(config: TasksConfig): string[];
|
|
202
|
+
/** Options for a package's generated `tsconfig.json`. */
|
|
180
203
|
interface TsconfigOptions {
|
|
181
204
|
/** Human-readable name for the `display` field — the package's own name is the usual choice. */
|
|
182
205
|
display: string;
|
|
@@ -213,7 +236,9 @@ interface EnsureTurboDependencyResult {
|
|
|
213
236
|
}
|
|
214
237
|
/** Minimal structural logger — `@theholocron/observability`'s `Logger` satisfies it. */
|
|
215
238
|
interface RunLogger {
|
|
239
|
+
/** Records a debug-level structured line. */
|
|
216
240
|
debug(obj: Record<string, unknown>, msg?: string): void;
|
|
241
|
+
/** Records a warning. */
|
|
217
242
|
warn(obj: Record<string, unknown>, msg?: string): void;
|
|
218
243
|
}
|
|
219
244
|
/**
|
|
@@ -242,6 +267,7 @@ interface RunDeps {
|
|
|
242
267
|
/** `node_modules/.bin/<bin>` or a PATH entry; `null` when not runnable. */
|
|
243
268
|
lookPath: (cwd: string, bin: string) => string | null;
|
|
244
269
|
}
|
|
270
|
+
/** What `runTask` needs for one task: the task, where to run it, and the injected dependencies. */
|
|
245
271
|
interface RunTaskInput extends RunDeps {
|
|
246
272
|
/** Registry task name, e.g. `"test"`. */
|
|
247
273
|
task: string;
|
|
@@ -269,13 +295,21 @@ interface RunTaskInput extends RunDeps {
|
|
|
269
295
|
/** The task entry's `jobs` switches: a sub-job set to `false` (by key or alias) is not run. */
|
|
270
296
|
jobSwitches?: Record<string, boolean>;
|
|
271
297
|
}
|
|
298
|
+
/** The result of `runTask`. */
|
|
272
299
|
interface RunTaskReport {
|
|
300
|
+
/** `ok`, `fail`, `skip` (no such task for this repo), `dry-run` or `unknown` (not a registry task). */
|
|
273
301
|
status: "ok" | "fail" | "skip" | "dry-run" | "unknown";
|
|
274
302
|
/** Resolved command, for the caller / tests. */
|
|
275
303
|
command?: string;
|
|
304
|
+
/** Why the task failed or was skipped. */
|
|
276
305
|
message?: string;
|
|
277
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Resolves one registry task (an explicit turbo task, a `package.json` script, then the registry's built-in runner)
|
|
309
|
+
* and runs it, or prints the command on a dry run.
|
|
310
|
+
*/
|
|
278
311
|
export declare function runTask(input: RunTaskInput): RunTaskReport;
|
|
312
|
+
/** Options for `Astromech.ci`: the scope, turbo filtering and whether to only print the plan. */
|
|
279
313
|
interface CiOptions {
|
|
280
314
|
/** Print the plan without running anything. */
|
|
281
315
|
dryRun?: boolean;
|
|
@@ -290,25 +324,35 @@ interface CiOptions {
|
|
|
290
324
|
/** `"required"` (default) or `"all"` (every `ci: true` task). */
|
|
291
325
|
scope?: "required" | "all";
|
|
292
326
|
}
|
|
327
|
+
/** The result of one task in a CI pre-flight run. */
|
|
293
328
|
interface CiJobReport {
|
|
329
|
+
/** Registry task name, e.g. `"test"`. */
|
|
294
330
|
task: string;
|
|
295
331
|
/** The branch-protection check context, or `null` for a non-gating task. */
|
|
296
332
|
checkContext: string | null;
|
|
333
|
+
/** `ok`, `fail`, `skip` (nothing to run for this repo) or `dry-run` (planned, not run). */
|
|
297
334
|
status: "ok" | "fail" | "skip" | "dry-run";
|
|
335
|
+
/** The resolved command, when one was run or planned. */
|
|
298
336
|
command?: string;
|
|
337
|
+
/** Why the job failed or was skipped. */
|
|
299
338
|
message?: string;
|
|
300
339
|
}
|
|
340
|
+
/** The result of a CI pre-flight run. */
|
|
301
341
|
interface CiReport {
|
|
342
|
+
/** `fail` if any job failed, else `ok`. */
|
|
302
343
|
status: "ok" | "fail";
|
|
344
|
+
/** One entry per task. */
|
|
303
345
|
jobs: CiJobReport[];
|
|
304
346
|
}
|
|
305
347
|
interface CiInput extends RunDeps, CiOptions {
|
|
306
348
|
cwd: string;
|
|
307
349
|
config: TasksConfig;
|
|
308
350
|
}
|
|
351
|
+
/** Runs the merge-gating tasks in CI order and reports each job and an overall `ok` or `fail`. */
|
|
309
352
|
export declare function runCi(input: CiInput): CiReport;
|
|
310
353
|
/** Comment style produced by workflowHeader. */
|
|
311
354
|
type WorkflowHeaderFormat = "yaml" | "cjs" | "shebang";
|
|
355
|
+
/** Where a generated file came from, for the header `createHeader` writes. */
|
|
312
356
|
interface CreateHeaderOptions {
|
|
313
357
|
/** Path within theholocron/holocron that owns the file being generated. */
|
|
314
358
|
source: string;
|
|
@@ -317,6 +361,7 @@ interface CreateHeaderOptions {
|
|
|
317
361
|
/** Set true only when writing to theholocron/.github itself. */
|
|
318
362
|
forPrimary?: boolean;
|
|
319
363
|
}
|
|
364
|
+
/** The header writers `createHeader` returns, one per kind of generated file. */
|
|
320
365
|
interface HeaderFunctions {
|
|
321
366
|
/**
|
|
322
367
|
* "AUTO-GENERATED — do not edit" header for files managed on every run.
|
|
@@ -363,7 +408,9 @@ interface HeaderFunctions {
|
|
|
363
408
|
* | `"shebang"` | `#!/bin/sh` + `# …` | Shell scripts (`prepare-commit-msg`, hooks) |
|
|
364
409
|
*/
|
|
365
410
|
export declare function createHeader(options: CreateHeaderOptions): HeaderFunctions;
|
|
411
|
+
/** The names of the directories directly inside `path`. */
|
|
366
412
|
export declare const defaultListDirs: (path: string) => string[];
|
|
413
|
+
/** Reads and parses the JSON file at `path`. */
|
|
367
414
|
export declare const defaultReadJson: (path: string) => unknown;
|
|
368
415
|
interface SpawnResult {
|
|
369
416
|
status: number | null;
|
|
@@ -373,9 +420,13 @@ interface SpawnResult {
|
|
|
373
420
|
type Run = (command: string, args: string[], options: Record<string, unknown>) => SpawnResult;
|
|
374
421
|
/** A workspace package: absolute folder, and what its `package.json` says. */
|
|
375
422
|
interface WorkspacePackage {
|
|
423
|
+
/** The package's `name`. */
|
|
376
424
|
name: string;
|
|
425
|
+
/** Absolute path of the package folder. */
|
|
377
426
|
dir: string;
|
|
427
|
+
/** The package's `version`; `undefined` when its manifest has none. */
|
|
378
428
|
version: string | undefined;
|
|
429
|
+
/** The package's `dependencies`, name to range. */
|
|
379
430
|
dependencies: Record<string, string>;
|
|
380
431
|
/**
|
|
381
432
|
* A workspace:* devDependency can optionally count too (holocron#1071,
|
|
@@ -397,7 +448,9 @@ interface Tree {
|
|
|
397
448
|
* `package.json`.
|
|
398
449
|
*/
|
|
399
450
|
export declare function workspacePackages(repoRoot: string, { readJson, listDirs }: Tree): WorkspacePackage[];
|
|
451
|
+
/** What `deployOnRelease` needs to know about a release. */
|
|
400
452
|
interface DeployOnReleaseOptions {
|
|
453
|
+
/** Repo root. */
|
|
401
454
|
cwd: string;
|
|
402
455
|
/** The release's channel: its prerelease identifier (`alpha`); empty or `main` for a stable release. */
|
|
403
456
|
channel: string;
|
|
@@ -407,6 +460,7 @@ interface DeployOnReleaseOptions {
|
|
|
407
460
|
to?: string;
|
|
408
461
|
/** Where progress lines go (stdout in the CLI). */
|
|
409
462
|
print: (line: string) => void;
|
|
463
|
+
/** Print what would deploy without running it. */
|
|
410
464
|
dryRun?: boolean;
|
|
411
465
|
}
|
|
412
466
|
interface DeployOnReleaseDeps extends Partial<Tree> {
|
|
@@ -416,14 +470,20 @@ interface DeployOnReleaseDeps extends Partial<Tree> {
|
|
|
416
470
|
/** Reads a package folder's task manifest; `loadTasksConfig` by default. */
|
|
417
471
|
loadTasks?: (dir: string) => Promise<TasksConfig>;
|
|
418
472
|
}
|
|
473
|
+
/** The outcome of deploying one workspace package. */
|
|
419
474
|
interface DeployOnReleaseResult {
|
|
475
|
+
/** The package's name. */
|
|
420
476
|
pkg: string;
|
|
477
|
+
/** `ok`, `fail`, `skip` (the package does not deploy on this release) or `dry-run`. */
|
|
421
478
|
status: "ok" | "fail" | "skip" | "dry-run";
|
|
479
|
+
/** A one-line account of what happened. */
|
|
422
480
|
message: string;
|
|
423
481
|
}
|
|
482
|
+
/** The outcome of a release-time deploy across the workspace. */
|
|
424
483
|
interface DeployOnReleaseReport {
|
|
425
484
|
/** `fail` if any package's deploy failed; `skip` if none applied to this release; else `ok`. */
|
|
426
485
|
status: "ok" | "fail" | "skip";
|
|
486
|
+
/** One entry per package considered for this release. */
|
|
427
487
|
results: DeployOnReleaseResult[];
|
|
428
488
|
}
|
|
429
489
|
/**
|
|
@@ -432,6 +492,7 @@ interface DeployOnReleaseReport {
|
|
|
432
492
|
* outcome is in the report, and `status: "fail"` is the caller's exit code.
|
|
433
493
|
*/
|
|
434
494
|
export declare function deployOnRelease(options: DeployOnReleaseOptions, { run, readJson, listDirs, sleep, now, loadTasks }?: DeployOnReleaseDeps): Promise<DeployOnReleaseReport>;
|
|
495
|
+
/** Options for running a namespace of tasks: a dry run and turbo scoping. */
|
|
435
496
|
interface GroupOptions {
|
|
436
497
|
/** Print the resolved commands without running anything. */
|
|
437
498
|
dryRun?: boolean;
|
|
@@ -444,15 +505,22 @@ interface GroupOptions {
|
|
|
444
505
|
/** Environment `affected` reads. */
|
|
445
506
|
env?: Record<string, string | undefined>;
|
|
446
507
|
}
|
|
508
|
+
/** The result of one task in a namespace run. */
|
|
447
509
|
interface GroupJobReport {
|
|
510
|
+
/** Registry task name, e.g. `"sourceQuality.formatting"`. */
|
|
448
511
|
task: string;
|
|
512
|
+
/** `ok`, `fail`, `skip` (nothing to run for this repo) or `dry-run` (planned, not run). */
|
|
449
513
|
status: "ok" | "fail" | "skip" | "dry-run";
|
|
514
|
+
/** The resolved command, when one was run or planned. */
|
|
450
515
|
command?: string;
|
|
516
|
+
/** Why the job failed or was skipped. */
|
|
451
517
|
message?: string;
|
|
452
518
|
}
|
|
519
|
+
/** The result of running every task in a namespace. */
|
|
453
520
|
interface GroupReport {
|
|
454
521
|
/** `"unknown"` when the namespace matches zero configured tasks. */
|
|
455
522
|
status: "ok" | "fail" | "dry-run" | "unknown";
|
|
523
|
+
/** One entry per matching task. */
|
|
456
524
|
jobs: GroupJobReport[];
|
|
457
525
|
}
|
|
458
526
|
interface GroupInput extends RunDeps, GroupOptions {
|
|
@@ -461,9 +529,11 @@ interface GroupInput extends RunDeps, GroupOptions {
|
|
|
461
529
|
/** The bare namespace, e.g. `"sourceQuality"` — matched against `"sourceQuality."`-prefixed task names. */
|
|
462
530
|
namespace: string;
|
|
463
531
|
}
|
|
532
|
+
/** Runs every configured task under a namespace (`sourceQuality` runs `sourceQuality.*`) in sequence and reports each. */
|
|
464
533
|
export declare function runGroup(input: GroupInput): GroupReport;
|
|
465
534
|
/** Every configured task whose name starts with `"<namespace>."`, in manifest declaration order. */
|
|
466
535
|
export declare function matchNamespace(config: TasksConfig, namespace: string): string[];
|
|
536
|
+
/** Everything `createAstromech` needs from the repo and the outside world; only `cwd` is required. */
|
|
467
537
|
interface AstromechOptions {
|
|
468
538
|
/** Repo root. */
|
|
469
539
|
cwd: string;
|
|
@@ -486,13 +556,16 @@ interface AstromechOptions {
|
|
|
486
556
|
exec?: ExecFn;
|
|
487
557
|
/** Injectable fs (tests). Default to `node:fs`. */
|
|
488
558
|
readFile?: (path: string) => string;
|
|
559
|
+
/** Injectable existence check (tests). Defaults to `node:fs`. */
|
|
489
560
|
fileExists?: (path: string) => boolean;
|
|
561
|
+
/** Injectable directory listing (tests). Defaults to `node:fs`. */
|
|
490
562
|
listDir?: (path: string) => string[];
|
|
491
563
|
/** Injectable environment for `--affected` (tests). Defaults to `process.env`. */
|
|
492
564
|
env?: Record<string, string | undefined>;
|
|
493
565
|
/** Injectable binary lookup (tests). Default checks `node_modules/.bin` then `PATH`. */
|
|
494
566
|
lookPath?: (cwd: string, bin: string) => string | null;
|
|
495
567
|
}
|
|
568
|
+
/** Options for `Astromech.run`: which sub-job, what to forward, and how to scope the turbo run. */
|
|
496
569
|
interface RunOptions {
|
|
497
570
|
/**
|
|
498
571
|
* Sub-job within the task — `performance` in `holocron run audit
|
|
@@ -513,6 +586,7 @@ interface RunOptions {
|
|
|
513
586
|
/** Git ref `affected` compares against. */
|
|
514
587
|
base?: string;
|
|
515
588
|
}
|
|
589
|
+
/** The task runner: one manifest drives local runs, the CI pre-flight and the generated workflows and scripts. */
|
|
516
590
|
interface Astromech {
|
|
517
591
|
/**
|
|
518
592
|
* Run one task — or one of its sub-jobs (`opts.job`) — locally. When
|
|
@@ -571,8 +645,9 @@ interface Astromech {
|
|
|
571
645
|
* Pass the current file's content (`null` if none exists yet) to either
|
|
572
646
|
* merge the component list in or scaffold a fresh file. Policy-free same
|
|
573
647
|
* as {@link requiredChecks} — `holocron repo setup` owns writing the result.
|
|
648
|
+
* `options.docsCoverage` adds the `documentation` flag and its statuses.
|
|
574
649
|
*/
|
|
575
|
-
codecovConfig(existing: string | null): string;
|
|
650
|
+
codecovConfig(existing: string | null, options?: CodecovConfigOptions): string;
|
|
576
651
|
/**
|
|
577
652
|
* The generated `turbo.json` for this repo's manifest, pretty-printed —
|
|
578
653
|
* write directly, no merge. `null` when no manifest task has turbo fan-out
|
|
@@ -655,6 +730,7 @@ interface JobDef {
|
|
|
655
730
|
*/
|
|
656
731
|
alias?: string;
|
|
657
732
|
}
|
|
733
|
+
/** One registry task: how `holocron run <task>` resolves, runs and reports it. */
|
|
658
734
|
interface TaskDef {
|
|
659
735
|
/**
|
|
660
736
|
* Sub-job slugs that no longer exist but that a reusable workflow synced earlier may still pass:
|
|
@@ -731,7 +807,9 @@ export declare const CI_ORDER: string[];
|
|
|
731
807
|
* @returns Repo-relative prefixes, each ending in `/`.
|
|
732
808
|
*/
|
|
733
809
|
export declare function defaultPaths(repoRoot: string, pkg: WorkspacePackage, all: WorkspacePackage[]): string[];
|
|
810
|
+
/** The `.alexrc.json` body: the org's inclusive-language allow-list. */
|
|
734
811
|
declare function createRcConfig(): string;
|
|
812
|
+
/** The `.alexignore` body. */
|
|
735
813
|
declare function createIgnoreConfig(): string;
|
|
736
814
|
/**
|
|
737
815
|
* `.husky/commit-msg` — lints the commit message via `holocron run lint
|
|
@@ -757,7 +835,9 @@ interface DependabotConfigOptions {
|
|
|
757
835
|
* `ignore` entry on the npm ecosystem; with none, the file is the shared body unchanged.
|
|
758
836
|
*/
|
|
759
837
|
declare function createConfig$1({ ignore }?: DependabotConfigOptions): string;
|
|
838
|
+
/** The `devmoji.config.cjs` body, which defers to `@theholocron/devmoji-config`. */
|
|
760
839
|
declare function createConfig$2(): string;
|
|
840
|
+
/** The `.editorconfig` body, under the auto-generated header. */
|
|
761
841
|
declare function createConfig$3(): string;
|
|
762
842
|
/**
|
|
763
843
|
* The generated `.editorconfig-checker.json`.
|
|
@@ -771,6 +851,7 @@ declare function createConfig$3(): string;
|
|
|
771
851
|
* buys nothing.
|
|
772
852
|
*/
|
|
773
853
|
declare function createConfig$4(): string;
|
|
854
|
+
/** The `.github/labeler.yml` body, which labels a pull request by its Conventional Commit type. */
|
|
774
855
|
declare function createConfig$5(): string;
|
|
775
856
|
/**
|
|
776
857
|
* `.husky/pre-commit` — runs GitLeaks (scoped to staged changes) and
|
|
@@ -794,7 +875,10 @@ declare function createConfig$6(): string;
|
|
|
794
875
|
* `pnpm exec holocron`; the source repo passes `node cli/cli/dist/cli.mjs`.
|
|
795
876
|
*/
|
|
796
877
|
declare function createConfig$7(holocronScript?: string): string;
|
|
878
|
+
/** The `.husky/prepare-commit-msg` hook, a shell script under the auto-generated header. */
|
|
797
879
|
declare function createConfig$8(): string;
|
|
880
|
+
/** The `.yamllint.yml` body, under the auto-generated header. */
|
|
798
881
|
declare function createConfig$9(): string;
|
|
882
|
+
/** The `.yamlignore` body. */
|
|
799
883
|
declare function createIgnoreConfig$1(): string;
|
|
800
|
-
export { type Astromech, type AstromechOptions, type CiJobReport, type CiOptions, type CiReport, type CreateHeaderOptions, type DependabotConfigOptions, type DeployOnReleaseOptions, type DeployOnReleaseReport, type DeployOnReleaseResult, type WorkspacePackage as DeployWorkspacePackage, type ExecFn, type GroupJobReport, type GroupOptions, type GroupReport, type HeaderFunctions, type JobDef, type LocalRunner, type OrgContext, type PreviewConfig, type RunLogger, type RunOptions, type RunTaskInput, type RunTaskReport, type TaskDef, type TsconfigOptions, type WorkflowHeaderFormat, type WorkspacePackage$1 as WorkspacePackage, createIgnoreConfig as createAlexignore, createRcConfig as createAlexrc, createConfig as createCommitMsg, createConfig$1 as createDependabot, createConfig$2 as createDevmoji, createConfig$3 as createEditorconfig, createConfig$4 as createEditorconfigChecker, createConfig$5 as createLabeler, createConfig$6 as createPreCommit, createConfig$7 as createPrePush, createConfig$8 as createPrepareCommitMsg, createIgnoreConfig$1 as createYamlignore, createConfig$9 as createYamllint };
|
|
884
|
+
export { type Astromech, type AstromechOptions, type CiJobReport, type CiOptions, type CiReport, type CodecovConfigOptions, type CreateHeaderOptions, type DependabotConfigOptions, type DeployOnReleaseOptions, type DeployOnReleaseReport, type DeployOnReleaseResult, type WorkspacePackage as DeployWorkspacePackage, type DocsCoverageMode, type ExecFn, type GroupJobReport, type GroupOptions, type GroupReport, type HeaderFunctions, type JobDef, type LocalRunner, type OrgContext, type PreviewConfig, type RunLogger, type RunOptions, type RunTaskInput, type RunTaskReport, type TaskDef, type TsconfigOptions, type WorkflowHeaderFormat, type WorkspacePackage$1 as WorkspacePackage, createIgnoreConfig as createAlexignore, createRcConfig as createAlexrc, createConfig as createCommitMsg, createConfig$1 as createDependabot, createConfig$2 as createDevmoji, createConfig$3 as createEditorconfig, createConfig$4 as createEditorconfigChecker, createConfig$5 as createLabeler, createConfig$6 as createPreCommit, createConfig$7 as createPrePush, createConfig$8 as createPrepareCommitMsg, createIgnoreConfig$1 as createYamlignore, createConfig$9 as createYamllint };
|
package/dist/index.mjs
CHANGED
|
@@ -29,6 +29,7 @@ function scaffoldHeader() {
|
|
|
29
29
|
function location({ slug, dir, path }) {
|
|
30
30
|
return path ?? `${dir ?? "packages"}/${slug}`;
|
|
31
31
|
}
|
|
32
|
+
/** The YAML list of components, one per package and grouped by workspace root, that `codecov.yml` carries. */
|
|
32
33
|
function codecovComponentBlock(packages) {
|
|
33
34
|
if (packages.length === 0) return "\n []\n";
|
|
34
35
|
let group;
|
|
@@ -223,15 +224,65 @@ function ensureIgnore(yaml) {
|
|
|
223
224
|
appendMissingItems(lines, range[0], range[1], IGNORED_DOCS, /^ {2}- ["']?([^"'\s]+)/, ignoreEntry);
|
|
224
225
|
return lines.join("\n");
|
|
225
226
|
}
|
|
226
|
-
/**
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
/** The Codecov flag the Docs coverage workflow uploads doc-comment coverage as (`holocron probe docs --lcov`). */
|
|
228
|
+
const DOCUMENTATION_FLAG = "documentation";
|
|
229
|
+
/** What each aggregate asks of the `documentation` flag: the patch must be fully documented, the project must not drop. */
|
|
230
|
+
const DOCUMENTATION_TARGETS = {
|
|
231
|
+
project: "auto",
|
|
232
|
+
patch: "100%"
|
|
233
|
+
};
|
|
234
|
+
function documentationStatus(kind, mode) {
|
|
235
|
+
return [
|
|
236
|
+
` ${DOCUMENTATION_FLAG}:`,
|
|
237
|
+
" flags:",
|
|
238
|
+
` - ${DOCUMENTATION_FLAG}`,
|
|
239
|
+
` target: ${DOCUMENTATION_TARGETS[kind]}`,
|
|
240
|
+
" if_not_found: success",
|
|
241
|
+
...mode === "warn" ? [" informational: true"] : []
|
|
242
|
+
];
|
|
229
243
|
}
|
|
230
|
-
|
|
244
|
+
/**
|
|
245
|
+
* Ensure `codecov.yml` carries the `documentation` flag and a named `documentation` status under
|
|
246
|
+
* `coverage.status.project` and `coverage.status.patch` (spec `tech-api-docs`). They are named statuses scoped to that
|
|
247
|
+
* flag, so the required `codecov/project` and `codecov/patch` keep counting only the tests. `warn` makes them
|
|
248
|
+
* informational and `required` does not; an existing status only has that line brought in line, so hand edits survive.
|
|
249
|
+
* `off` adds nothing and leaves what is there alone: setup never deletes.
|
|
250
|
+
*/
|
|
251
|
+
function ensureDocumentationCoverage(yaml, mode) {
|
|
252
|
+
if (mode === "off") return yaml;
|
|
253
|
+
const lines = ensureFlagManagement(yaml, [DOCUMENTATION_FLAG]).split("\n");
|
|
254
|
+
for (const kind of ["project", "patch"]) {
|
|
255
|
+
const at = lines.indexOf(` ${kind}:`);
|
|
256
|
+
if (at === -1) continue;
|
|
257
|
+
let end = at + 1;
|
|
258
|
+
while (end < lines.length && (lines[end].trim() === "" || /^ {5}/.test(lines[end]))) end++;
|
|
259
|
+
while (lines[end - 1].trim() === "") end--;
|
|
260
|
+
const own = lines.findIndex((line, i) => i > at && i < end && line === ` documentation:`);
|
|
261
|
+
if (own === -1) {
|
|
262
|
+
lines.splice(end, 0, ...documentationStatus(kind, mode));
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
let ownEnd = own + 1;
|
|
266
|
+
while (ownEnd < end && /^ {8}/.test(lines[ownEnd])) ownEnd++;
|
|
267
|
+
const keep = lines.slice(own, ownEnd).filter((line) => !/^ {8}informational:/.test(line));
|
|
268
|
+
lines.splice(own, ownEnd - own, ...keep, ...mode === "warn" ? [" informational: true"] : []);
|
|
269
|
+
}
|
|
270
|
+
return lines.join("\n");
|
|
271
|
+
}
|
|
272
|
+
/** Everything `codecov.yml` needs on top of the components list: if_not_found, ignored docs, flags, scoped aggregates, informational components, and the documentation flag when the repo asks for it. */
|
|
273
|
+
function applyStatusRules(yaml, flags, docsCoverage) {
|
|
274
|
+
return ensureDocumentationCoverage(ensureInformationalComponentStatuses(scopeAggregateStatuses(ensureFlagManagement(ensureIgnore(ensureIfNotFound(yaml)), flags), flags)), docsCoverage);
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* Brings an existing `codecov.yml` up to date with the workspace packages (flags, components and status rules) and the
|
|
278
|
+
* repo's `options`, keeping every hand edit.
|
|
279
|
+
*/
|
|
280
|
+
function mergeCodecovComponents(existing, packages, options = {}) {
|
|
231
281
|
const flags = codecovFlagNames(packages);
|
|
282
|
+
const docsCoverage = options.docsCoverage ?? "off";
|
|
232
283
|
const idx = existing.indexOf(INDIVIDUAL_COMPONENTS_MARKER);
|
|
233
|
-
if (idx === -1) return applyStatusRules(existing, flags);
|
|
234
|
-
return applyStatusRules(existing.slice(0, idx + 24), flags) + codecovComponentBlock(packages);
|
|
284
|
+
if (idx === -1) return applyStatusRules(existing, flags, docsCoverage);
|
|
285
|
+
return applyStatusRules(existing.slice(0, idx + 24), flags, docsCoverage) + codecovComponentBlock(packages);
|
|
235
286
|
}
|
|
236
287
|
/**
|
|
237
288
|
* Every package the repo's `pnpm-workspace.yaml` declares (the default roots
|
|
@@ -268,8 +319,8 @@ function readWorkspacePackages(repoRoot) {
|
|
|
268
319
|
}).sort((a, b) => location(a).localeCompare(location(b)));
|
|
269
320
|
}
|
|
270
321
|
/** A brand-new `codecov.yml` — the scaffold header + the base template + this repo's component list. */
|
|
271
|
-
function createCodecovConfig(packages) {
|
|
272
|
-
const base = applyStatusRules(codecov_default.trimEnd(), codecovFlagNames(packages));
|
|
322
|
+
function createCodecovConfig(packages, options = {}) {
|
|
323
|
+
const base = applyStatusRules(codecov_default.trimEnd(), codecovFlagNames(packages), options.docsCoverage ?? "off");
|
|
273
324
|
return `${scaffoldHeader()}${base}${codecovComponentBlock(packages)}`;
|
|
274
325
|
}
|
|
275
326
|
/**
|
|
@@ -277,9 +328,9 @@ function createCodecovConfig(packages) {
|
|
|
277
328
|
* `packages/*`, then either merge them into an `existing` `codecov.yml` or
|
|
278
329
|
* scaffold a new one.
|
|
279
330
|
*/
|
|
280
|
-
function codecovConfig(repoRoot, existing) {
|
|
331
|
+
function codecovConfig(repoRoot, existing, options = {}) {
|
|
281
332
|
const packages = readWorkspacePackages(repoRoot);
|
|
282
|
-
return existing != null ? mergeCodecovComponents(existing, packages) : createCodecovConfig(packages);
|
|
333
|
+
return existing != null ? mergeCodecovComponents(existing, packages, options) : createCodecovConfig(packages, options);
|
|
283
334
|
}
|
|
284
335
|
// src/templates/reusable/actions/auto-commit.yml
|
|
285
336
|
var auto_commit_default = "name: Auto Commit\ndescription: >\n Commit and push any file changes using stefanzweifel/git-auto-commit-action.\n If a branch name is provided and differs from the current branch, a new branch\n is created automatically.\n\ninputs:\n token:\n description: >\n GitHub token with push access to the target branch. Used to authenticate\n the git remote so the commit can be pushed.\n required: true\n branch:\n description: >\n Branch to commit to. Leave empty to commit to the current branch (useful\n in PR contexts). Provide an explicit name (e.g. chore/auto-sync-<sha>) to push\n to a separate branch.\n required: false\n default: \"\"\n commit-message:\n description: Commit message.\n required: true\n commit-options:\n description: >\n Additional options passed to git commit (e.g. --no-verify).\n required: false\n default: \"\"\n commit-user-name:\n description: Git user.name for the commit.\n required: false\n default: \"github-actions[bot]\"\n commit-user-email:\n description: Git user.email for the commit.\n required: false\n default: \"41898282+github-actions[bot]@users.noreply.github.com\"\n commit-author:\n description: >\n Git author string in \"Name <email>\" format.\n required: false\n default: \"github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>\"\n\noutputs:\n changes-detected:\n description: \"'true' if any files were committed, 'false' otherwise.\"\n value: ${{ steps.commit.outputs.changes_detected }}\n\nruns:\n using: composite\n steps:\n - name: Configure git remote with token\n shell: bash\n run: |\n REMOTE_URL=$(git remote get-url origin)\n AUTHED_URL=$(echo \"$REMOTE_URL\" | sed \"s|https://|https://x-access-token:${TOKEN}@|\")\n git remote set-url origin \"$AUTHED_URL\"\n env:\n TOKEN: ${{ inputs.token }}\n\n - name: Reset branch to current HEAD\n if: ${{ inputs.branch != '' }}\n shell: bash\n run: git checkout -B \"$BRANCH\"\n env:\n BRANCH: ${{ inputs.branch }}\n\n - name: Build signed commit message\n id: msg\n shell: bash\n run: |\n TRAILER=\"Signed-off-by: ${COMMIT_USER_NAME} <${COMMIT_USER_EMAIL}>\"\n if echo \"$COMMIT_MESSAGE\" | grep -qF \"$TRAILER\"; then\n FINAL=\"$COMMIT_MESSAGE\"\n else\n FINAL=\"${COMMIT_MESSAGE}\"$'\\n\\n'\"${TRAILER}\"\n fi\n {\n echo \"value<<EOF_TRAILER\"\n printf '%s' \"$FINAL\"\n echo \"\"\n echo \"EOF_TRAILER\"\n } >> \"$GITHUB_OUTPUT\"\n env:\n COMMIT_MESSAGE: ${{ inputs.commit-message }}\n COMMIT_USER_NAME: ${{ inputs.commit-user-name }}\n COMMIT_USER_EMAIL: ${{ inputs.commit-user-email }}\n\n - uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0\n id: commit\n with:\n branch: ${{ inputs.branch }}\n commit_message: ${{ steps.msg.outputs.value }}\n commit_options: ${{ inputs.commit-options }}\n commit_user_name: ${{ inputs.commit-user-name }}\n commit_user_email: ${{ inputs.commit-user-email }}\n commit_author: ${{ inputs.commit-author }}\n";
|
|
@@ -596,6 +647,7 @@ function groupedPublishCaller(base, groups, shared, ungrouped = false) {
|
|
|
596
647
|
* (synced to `theholocron/.github`); `generateThinCallerContent` wraps one
|
|
597
648
|
* into the thin caller `holocron repo setup` / `holocron repo sync` write locally.
|
|
598
649
|
*/
|
|
650
|
+
/** The reusable-workflow thin-caller templates, by task name. */
|
|
599
651
|
const WORKFLOW_TEMPLATES = {
|
|
600
652
|
"verification.unitTests": verification_unitTests_default,
|
|
601
653
|
"verification.visualRegression": verification_visualRegression_default,
|
|
@@ -627,6 +679,7 @@ const WORKFLOW_TEMPLATES = {
|
|
|
627
679
|
dependencies: dependencies_default,
|
|
628
680
|
bookkeeping: bookkeeping_default
|
|
629
681
|
};
|
|
682
|
+
/** The task names that have a thin-caller workflow template. */
|
|
630
683
|
const KNOWN_WORKFLOWS = new Set(Object.keys(WORKFLOW_TEMPLATES));
|
|
631
684
|
/**
|
|
632
685
|
* The GitHub status-check context a `required` task contributes to branch
|
|
@@ -1391,8 +1444,10 @@ function createHeader(options) {
|
|
|
1391
1444
|
};
|
|
1392
1445
|
}
|
|
1393
1446
|
// src/utils/default-list-dirs/default-list-dirs.ts
|
|
1447
|
+
/** The names of the directories directly inside `path`. */
|
|
1394
1448
|
const defaultListDirs = (path) => readdirSync(path, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => entry.name);
|
|
1395
1449
|
// src/utils/default-read-json/default-read-json.ts
|
|
1450
|
+
/** Reads and parses the JSON file at `path`. */
|
|
1396
1451
|
const defaultReadJson = (path) => JSON.parse(readFileSync(path, "utf8"));
|
|
1397
1452
|
// src/utils/default-run/default-run.ts
|
|
1398
1453
|
const defaultRun = (command, args, opts) => spawnSync(command, args, {
|
|
@@ -2143,6 +2198,10 @@ function jobEnabled(name, jobDef, switches) {
|
|
|
2143
2198
|
if (!switches) return true;
|
|
2144
2199
|
return switches[name] !== false && (jobDef.alias === void 0 || switches[jobDef.alias] !== false);
|
|
2145
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
* Resolves one registry task (an explicit turbo task, a `package.json` script, then the registry's built-in runner)
|
|
2203
|
+
* and runs it, or prints the command on a dry run.
|
|
2204
|
+
*/
|
|
2146
2205
|
function runTask(input) {
|
|
2147
2206
|
const { print, logger, readFile, fileExists, listDir, task, cwd } = input;
|
|
2148
2207
|
const def = TASKS[task];
|
|
@@ -2465,6 +2524,7 @@ function runLinterGroup(input, names, passthrough) {
|
|
|
2465
2524
|
* no turbo task / `package.json` script is skipped, never failed — even when
|
|
2466
2525
|
* `required` (it's a CI-only check, not a local one).
|
|
2467
2526
|
*/
|
|
2527
|
+
/** Runs the merge-gating tasks in CI order and reports each job and an overall `ok` or `fail`. */
|
|
2468
2528
|
function runCi(input) {
|
|
2469
2529
|
const { print } = input;
|
|
2470
2530
|
const byName = /* @__PURE__ */ new Map();
|
|
@@ -2850,6 +2910,7 @@ function jobSwitches(config, name) {
|
|
|
2850
2910
|
const jobs = config.tasks.map(normalizeTaskEntry).find((e) => e.name === name)?.jobs;
|
|
2851
2911
|
return jobs ? { jobSwitches: jobs } : {};
|
|
2852
2912
|
}
|
|
2913
|
+
/** Runs every configured task under a namespace (`sourceQuality` runs `sourceQuality.*`) in sequence and reports each. */
|
|
2853
2914
|
function runGroup(input) {
|
|
2854
2915
|
const { print, namespace } = input;
|
|
2855
2916
|
const names = matchNamespace(input.config, namespace);
|
|
@@ -3018,7 +3079,7 @@ function createAstromech(options) {
|
|
|
3018
3079
|
runnableTasks: () => runnableTaskNames(),
|
|
3019
3080
|
reusableTemplates: () => reusableTemplates(),
|
|
3020
3081
|
requiredChecks: () => requiredChecks(options.config ?? {}),
|
|
3021
|
-
codecovConfig: (existing) => codecovConfig(options.cwd, existing),
|
|
3082
|
+
codecovConfig: (existing, codecov) => codecovConfig(options.cwd, existing, codecov),
|
|
3022
3083
|
turboConfig: () => turboConfig(options.config ?? {}),
|
|
3023
3084
|
ensureRootWorkspaceMember: (workspaceYaml, rootScripts) => {
|
|
3024
3085
|
return ensureRootWorkspaceMember(workspaceYaml, rootScripts, (options.config?.tasks ?? []).map(normalizeTaskEntry).filter((e) => e.local !== false).map((e) => e.name));
|
|
@@ -3030,9 +3091,11 @@ function createAstromech(options) {
|
|
|
3030
3091
|
var alexignore_default = ".github/*\nCHANGELOG.md\nLICENSE\n";
|
|
3031
3092
|
// src/templates/configs/alexjs/create-config.ts
|
|
3032
3093
|
const { workflowHeader: workflowHeader$9 } = createHeader({ source: "cli/astromech/src/templates/configs/alexjs/create-config.ts" });
|
|
3094
|
+
/** The `.alexrc.json` body: the org's inclusive-language allow-list. */
|
|
3033
3095
|
function createRcConfig() {
|
|
3034
3096
|
return formatJson(alexrc_default);
|
|
3035
3097
|
}
|
|
3098
|
+
/** The `.alexignore` body. */
|
|
3036
3099
|
function createIgnoreConfig() {
|
|
3037
3100
|
return `${workflowHeader$9()}${alexignore_default}`;
|
|
3038
3101
|
}
|
|
@@ -3071,6 +3134,7 @@ function createConfig$1({ ignore = [] } = {}) {
|
|
|
3071
3134
|
}
|
|
3072
3135
|
// src/templates/configs/devmoji/create-config.ts
|
|
3073
3136
|
const { workflowHeader: workflowHeader$6 } = createHeader({ source: "cli/astromech/src/templates/configs/devmoji/create-config.ts" });
|
|
3137
|
+
/** The `devmoji.config.cjs` body, which defers to `@theholocron/devmoji-config`. */
|
|
3074
3138
|
function createConfig$2() {
|
|
3075
3139
|
return [
|
|
3076
3140
|
workflowHeader$6("cjs"),
|
|
@@ -3084,6 +3148,7 @@ function createConfig$2() {
|
|
|
3084
3148
|
var editorconfig_default = "root = true\n\n[*]\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\nindent_style = tab\nindent_size = 4\n\n[.gitattributes]\nindent_style = space\nindent_size = 2\n\n[*.{json,yml,yaml}]\nindent_style = space\nindent_size = 2\n\n[*.{md,mdx}]\ntrim_trailing_whitespace = false\nindent_style = unset\n\n[.*{rc,ignore}]\nindent_style = space\nindent_size = 2\n";
|
|
3085
3149
|
// src/templates/configs/editorconfig/create-config.ts
|
|
3086
3150
|
const { workflowHeader: workflowHeader$5 } = createHeader({ source: "cli/astromech/src/templates/configs/editorconfig/create-config.ts" });
|
|
3151
|
+
/** The `.editorconfig` body, under the auto-generated header. */
|
|
3087
3152
|
function createConfig$3() {
|
|
3088
3153
|
return `${workflowHeader$5()}${editorconfig_default}`;
|
|
3089
3154
|
}
|
|
@@ -3106,6 +3171,7 @@ function createConfig$4() {
|
|
|
3106
3171
|
var labeler_default = "bug:\n - \"^fix\"\n\nchore:\n - '^chore(?!\\(deps)'\n\nci:\n - \"^ci\"\n\ndependencies:\n - '^chore\\(deps'\n\ndocumentation:\n - \"^docs\"\n\nenhancement:\n - \"^feat\"\n\nperformance:\n - \"^perf\"\n\nrefactor:\n - \"^refactor\"\n\ntest:\n - \"^test\"\n";
|
|
3107
3172
|
// src/templates/configs/labeler/create-config.ts
|
|
3108
3173
|
const { workflowHeader: workflowHeader$4 } = createHeader({ source: "cli/astromech/src/templates/configs/labeler/create-config.ts" });
|
|
3174
|
+
/** The `.github/labeler.yml` body, which labels a pull request by its Conventional Commit type. */
|
|
3109
3175
|
function createConfig$5() {
|
|
3110
3176
|
return `${workflowHeader$4()}${labeler_default}`;
|
|
3111
3177
|
}
|
|
@@ -3147,6 +3213,7 @@ function createConfig$7(holocronScript = "pnpm exec holocron") {
|
|
|
3147
3213
|
var prepare_commit_msg_default = "NAME=$(git config user.name)\nEMAIL=$(git config user.email)\n\nif [ -z \"$NAME\" ]; then\n echo \"empty git config user.name\"\n exit 1\nfi\n\nif [ -z \"$EMAIL\" ]; then\n echo \"empty git config user.email\"\n exit 1\nfi\n\ngit interpret-trailers --if-exists doNothing --trailer \\\n \"Signed-off-by: $NAME <$EMAIL>\" \\\n --in-place \"$1\"\n\n# --config <resolved shared path> (config-resolution workstream, #676) — falls\n# back to devmoji's own auto-discovery of a local devmoji.config.cjs when the\n# shared package's built dist/ isn't present (not installed, or a stale\n# install predating this file).\nDEVMOJI_CONFIG=\"node_modules/@theholocron/devmoji-config/dist/index.cjs\"\nif [ -f \"$DEVMOJI_CONFIG\" ]; then\n npx devmoji --config \"$DEVMOJI_CONFIG\" -e\nelse\n npx devmoji -e\nfi\n";
|
|
3148
3214
|
// src/templates/configs/prepare-commit-msg/create-config.ts
|
|
3149
3215
|
const { workflowHeader: workflowHeader$1 } = createHeader({ source: "cli/astromech/src/templates/configs/prepare-commit-msg/create-config.ts" });
|
|
3216
|
+
/** The `.husky/prepare-commit-msg` hook, a shell script under the auto-generated header. */
|
|
3150
3217
|
function createConfig$8() {
|
|
3151
3218
|
return `${workflowHeader$1("shebang")}${prepare_commit_msg_default}`;
|
|
3152
3219
|
}
|
|
@@ -3156,9 +3223,11 @@ var _yamlignore_default = "pnpm-lock.yaml\n";
|
|
|
3156
3223
|
var _yamllint_default = "---\nextends: default\n\nignore-from-file:\n - .gitignore\n - .yamlignore\n\nrules:\n comments:\n min-spaces-from-content: 1\n require-starting-space: true\n\n comments-indentation: {}\n\n document-start:\n ignore: |\n .github/*.yml\n\n indentation:\n spaces: consistent\n indent-sequences: consistent\n\n line-length: disable\n";
|
|
3157
3224
|
// src/templates/configs/yamllint/create-config.ts
|
|
3158
3225
|
const { workflowHeader } = createHeader({ source: "cli/astromech/src/templates/configs/yamllint/create-config.ts" });
|
|
3226
|
+
/** The `.yamllint.yml` body, under the auto-generated header. */
|
|
3159
3227
|
function createConfig$9() {
|
|
3160
3228
|
return `${workflowHeader()}${_yamllint_default}`;
|
|
3161
3229
|
}
|
|
3230
|
+
/** The `.yamlignore` body. */
|
|
3162
3231
|
function createIgnoreConfig$1() {
|
|
3163
3232
|
return `${workflowHeader()}${_yamlignore_default}`;
|
|
3164
3233
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/astromech",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.279",
|
|
4
4
|
"description": "The Holocron task runner — one task manifest drives `holocron run`, `holocron run ci`, the CI workflows, package.json scripts, linters, and required checks.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@commitlint/lint": "^21.2.3",
|
|
51
51
|
"@commitlint/load": "^21.2.3",
|
|
52
52
|
"@commitlint/types": "^21.2.3",
|
|
53
|
-
"@theholocron/
|
|
54
|
-
"@theholocron/
|
|
55
|
-
"@theholocron/
|
|
56
|
-
"@theholocron/
|
|
53
|
+
"@theholocron/fs-utils": "^1.16.1-alpha.3",
|
|
54
|
+
"@theholocron/json-utils": "^1.16.1-alpha.3",
|
|
55
|
+
"@theholocron/pkg-utils": "^1.16.1-alpha.3",
|
|
56
|
+
"@theholocron/datapad": "5.0.0-alpha.279"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@commitlint/config-conventional": "^21.2.3",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"tsdown": "^0.23.3",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
71
|
"vitest": "^5.0.5",
|
|
72
|
-
"@theholocron/commitlint-config": "^8.9.0-alpha.
|
|
73
|
-
"@theholocron/
|
|
74
|
-
"@theholocron/
|
|
75
|
-
"@theholocron/tsconfig": "^8.9.0-alpha.
|
|
76
|
-
"@theholocron/
|
|
77
|
-
"@theholocron/
|
|
78
|
-
"@theholocron/
|
|
72
|
+
"@theholocron/commitlint-config": "^8.9.0-alpha.4",
|
|
73
|
+
"@theholocron/semantic-release-config": "^8.9.0-alpha.4",
|
|
74
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.4",
|
|
75
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.4",
|
|
76
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.4",
|
|
77
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.4",
|
|
78
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.4"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@semantic-release/commit-analyzer": "^13",
|