@theholocron/astromech 5.0.0-alpha.154 → 5.0.0-alpha.156

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.
@@ -1,5 +1,5 @@
1
1
  import { QualifiedConfig } from "@commitlint/types";
2
- //#region src/lint/alex-config.d.ts
2
+ //#region src/lint/alex-config/alex-config.d.ts
3
3
  /**
4
4
  * The org's canonical `alex` (inclusive-language) config, as raw parsed
5
5
  * data rather than the pre-rendered file strings `createRcConfig()`/
@@ -18,7 +18,7 @@ declare const ALEX_CONFIG: {
18
18
  allow: string[];
19
19
  };
20
20
  //#endregion
21
- //#region src/lint/alex-ignore-patterns.d.ts
21
+ //#region src/lint/alex-ignore-patterns/alex-ignore-patterns.d.ts
22
22
  /**
23
23
  * Glob-ish path patterns `alex` skips. Kept as a literal here rather than
24
24
  * importing `../templates/configs/alexjs/alexignore` directly — that file
@@ -30,7 +30,7 @@ declare const ALEX_CONFIG: {
30
30
  */
31
31
  declare const ALEX_IGNORE_PATTERNS: string[];
32
32
  //#endregion
33
- //#region src/lint/editorconfig-checker-exclude.d.ts
33
+ //#region src/lint/editorconfig-checker-exclude/editorconfig-checker-exclude.d.ts
34
34
  /**
35
35
  * The paths editorconfig-checker skips, read from the same
36
36
  * `editorconfig-checker.json` template `holocron repo setup` writes as a repo's
@@ -49,11 +49,11 @@ declare const ALEX_IGNORE_PATTERNS: string[];
49
49
  */
50
50
  declare const EDITORCONFIG_CHECKER_EXCLUDE: readonly string[];
51
51
  //#endregion
52
- //#region src/lint/is-editorconfig-excluded.d.ts
52
+ //#region src/lint/is-editorconfig-excluded/is-editorconfig-excluded.d.ts
53
53
  /** `true` when `path` matches any {@link EDITORCONFIG_CHECKER_EXCLUDE} pattern. */
54
54
  declare function isEditorConfigExcluded(path: string): boolean;
55
55
  //#endregion
56
- //#region src/lint/lint-message.type.d.ts
56
+ //#region src/lint/lint-message/lint-message.type.d.ts
57
57
  interface CommitMessageViolation {
58
58
  /** Rule name, e.g. `"subject-empty"`. */
59
59
  rule: string;
@@ -61,19 +61,19 @@ interface CommitMessageViolation {
61
61
  message: string;
62
62
  }
63
63
  //#endregion
64
- //#region src/lint/lint-commit-msg-file.type.d.ts
64
+ //#region src/lint/lint-message/lint-message.d.ts
65
+ declare function lintCommitMessage(message: string, loaded: QualifiedConfig): Promise<CommitMessageViolation[]>;
66
+ //#endregion
67
+ //#region src/lint/lint-commit-msg-file/lint-commit-msg-file.type.d.ts
65
68
  interface LintCommitMsgFileResult {
66
69
  valid: boolean;
67
70
  violations: CommitMessageViolation[];
68
71
  }
69
72
  //#endregion
70
- //#region src/lint/lint-commit-msg-file.d.ts
73
+ //#region src/lint/lint-commit-msg-file/lint-commit-msg-file.d.ts
71
74
  declare function lintCommitMsgFile(filePath: string, cwd?: string): Promise<LintCommitMsgFileResult>;
72
75
  //#endregion
73
- //#region src/lint/lint-message.d.ts
74
- declare function lintCommitMessage(message: string, loaded: QualifiedConfig): Promise<CommitMessageViolation[]>;
75
- //#endregion
76
- //#region src/lint/prettier-ignore-patterns.d.ts
76
+ //#region src/lint/prettier-ignore-patterns/prettier-ignore-patterns.d.ts
77
77
  /**
78
78
  * The org's canonical prettier ignore-pattern list for a central Sentinel
79
79
  * check (holocron#769/#819) — the `PRETTIER_CONFIG` object itself doesn't
@@ -2,7 +2,7 @@ import { n as alexrc_default, t as editorconfig_checker_default } from "../edito
2
2
  import { readFile } from "node:fs/promises";
3
3
  import load from "@commitlint/load";
4
4
  import lint from "@commitlint/lint";
5
- //#region src/lint/alex-config.ts
5
+ //#region src/lint/alex-config/alex-config.ts
6
6
  /**
7
7
  * The org's canonical `alex` (inclusive-language) config, as raw parsed
8
8
  * data rather than the pre-rendered file strings `createRcConfig()`/
@@ -19,7 +19,7 @@ import lint from "@commitlint/lint";
19
19
  */
20
20
  const ALEX_CONFIG = alexrc_default;
21
21
  //#endregion
22
- //#region src/lint/alex-ignore-patterns.ts
22
+ //#region src/lint/alex-ignore-patterns/alex-ignore-patterns.ts
23
23
  /**
24
24
  * Glob-ish path patterns `alex` skips. Kept as a literal here rather than
25
25
  * importing `../templates/configs/alexjs/alexignore` directly — that file
@@ -35,7 +35,7 @@ const ALEX_IGNORE_PATTERNS = [
35
35
  "LICENSE"
36
36
  ];
37
37
  //#endregion
38
- //#region src/lint/editorconfig-checker-exclude.ts
38
+ //#region src/lint/editorconfig-checker-exclude/editorconfig-checker-exclude.ts
39
39
  /**
40
40
  * The paths editorconfig-checker skips, read from the same
41
41
  * `editorconfig-checker.json` template `holocron repo setup` writes as a repo's
@@ -54,13 +54,13 @@ const ALEX_IGNORE_PATTERNS = [
54
54
  */
55
55
  const EDITORCONFIG_CHECKER_EXCLUDE = editorconfig_checker_default.Exclude;
56
56
  //#endregion
57
- //#region src/lint/is-editorconfig-excluded.ts
57
+ //#region src/lint/is-editorconfig-excluded/is-editorconfig-excluded.ts
58
58
  /** `true` when `path` matches any {@link EDITORCONFIG_CHECKER_EXCLUDE} pattern. */
59
59
  function isEditorConfigExcluded(path) {
60
60
  return EDITORCONFIG_CHECKER_EXCLUDE.some((pattern) => new RegExp(pattern).test(path));
61
61
  }
62
62
  //#endregion
63
- //#region src/lint/lint-message.ts
63
+ //#region src/lint/lint-message/lint-message.ts
64
64
  /**
65
65
  * Lints one commit message string against an already-loaded commitlint
66
66
  * config. The genuinely environment-independent half of commit-message
@@ -95,7 +95,7 @@ async function lintCommitMessage(message, loaded) {
95
95
  }));
96
96
  }
97
97
  //#endregion
98
- //#region src/lint/lint-commit-msg-file.ts
98
+ //#region src/lint/lint-commit-msg-file/lint-commit-msg-file.ts
99
99
  /**
100
100
  * `holocron run lint commit-msg <file>` — a real programmatic replacement for
101
101
  * shelling out to `commitlint --edit "$1"` from `.husky/commit-msg`
@@ -117,7 +117,7 @@ async function lintCommitMsgFile(filePath, cwd = process.cwd()) {
117
117
  };
118
118
  }
119
119
  //#endregion
120
- //#region src/lint/prettier-ignore-patterns.ts
120
+ //#region src/lint/prettier-ignore-patterns/prettier-ignore-patterns.ts
121
121
  /**
122
122
  * The org's canonical prettier ignore-pattern list for a central Sentinel
123
123
  * check (holocron#769/#819) — the `PRETTIER_CONFIG` object itself doesn't
@@ -1,5 +1,5 @@
1
1
  import { loadLayered } from "@theholocron/datapad";
2
- //#region src/config/schema.ts
2
+ //#region src/config/schema/schema.ts
3
3
  /**
4
4
  * The `tasks` config shape — the single manifest of what a repo runs.
5
5
  * Read from a dedicated `astromech.config.*` file or the `tasks` key of
@@ -17,14 +17,14 @@ function normalizeTaskEntry(item) {
17
17
  };
18
18
  }
19
19
  //#endregion
20
- //#region src/config/coerce-tasks.ts
20
+ //#region src/config/coerce-tasks/coerce-tasks.ts
21
21
  /** A bare item array is shorthand for `{ tasks: [...] }`. */
22
22
  function coerceTasks(value) {
23
23
  if (value == null) return void 0;
24
24
  return Array.isArray(value) ? { tasks: value } : value;
25
25
  }
26
26
  //#endregion
27
- //#region src/config/load.ts
27
+ //#region src/config/load/load.ts
28
28
  /**
29
29
  * Resolve the task manifest for a repo: the `tasks` key of
30
30
  * `holocron.config.*`, then a dedicated `astromech.config.*` merged on
@@ -1,4 +1,4 @@
1
- //#region src/config/schema.type.d.ts
1
+ //#region src/config/schema/schema.type.d.ts
2
2
  interface TaskEntry {
3
3
  /** Registry task name — `verification.unitTests`, `sourceQuality.staticAnalysis`, `delivery.build`, … */
4
4
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.154",
3
+ "version": "5.0.0-alpha.156",
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",
@@ -48,15 +48,16 @@
48
48
  "@theholocron/fs-utils": "^1.15.1",
49
49
  "@theholocron/json-utils": "^1.15.1",
50
50
  "@theholocron/pkg-utils": "^1.15.1",
51
- "@theholocron/datapad": "5.0.0-alpha.154"
51
+ "@theholocron/datapad": "5.0.0-alpha.156"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@commitlint/config-conventional": "^21.2.3",
55
- "@theholocron/commitlint-config": "^8.7.1",
56
- "@theholocron/eslint-config": "^8.7.1",
57
- "@theholocron/tsconfig": "^8.7.1",
58
- "@theholocron/tsdown-config": "^8.7.1",
59
- "@theholocron/vitest-config": "^8.7.0",
55
+ "@theholocron/commitlint-config": "^8.8.0",
56
+ "@theholocron/eslint-config": "^8.8.0",
57
+ "@theholocron/rollup-plugin-transform-template": "^8.8.0",
58
+ "@theholocron/tsconfig": "^8.8.0",
59
+ "@theholocron/tsdown-config": "^8.8.0",
60
+ "@theholocron/vitest-config": "^8.8.0",
60
61
  "@types/node": "^26",
61
62
  "@vitest/coverage-v8": "^4.1.11",
62
63
  "@vitest/eslint-plugin": "^1.6.27",
@@ -65,8 +66,7 @@
65
66
  "globals": "^17.11.0",
66
67
  "tsdown": "^0.22.14",
67
68
  "typescript": "^5.9.3",
68
- "vitest": "^4.1.11",
69
- "@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.154"
69
+ "vitest": "^4.1.11"
70
70
  },
71
71
  "engines": {
72
72
  "node": ">=22"