@theholocron/astromech 5.0.0-alpha.372 → 5.0.0-alpha.374

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 CHANGED
@@ -310,6 +310,9 @@ interface PackageScriptProblem {
310
310
  * - a leaf script that calls `turbo run` or `holocron run` in a package: it must hold the real tool command, or turbo
311
311
  * would run it, and it would run turbo again;
312
312
  * - a script that looks like a suite member but is none (`test:unt`), other than a known variant;
313
+ * - a script named by a task id's hyphen spelling (`deploy-preview`) where the script spelling takes a colon
314
+ * (`deploy:preview`): `holocron run` looks the script up by the script spelling, so the task would find none and be
315
+ * skipped as "enforced in CI" (#1929);
313
316
  * - an old dotted task name, as a `warn` while those are accepted.
314
317
  */
315
318
  export declare function checkPackageScripts(scripts: Readonly<Record<string, string>>, role: PackageRole): PackageScriptProblem[];
package/dist/index.mjs CHANGED
@@ -1837,6 +1837,9 @@ function callsTheTaskMachinery(command) {
1837
1837
  * - a leaf script that calls `turbo run` or `holocron run` in a package: it must hold the real tool command, or turbo
1838
1838
  * would run it, and it would run turbo again;
1839
1839
  * - a script that looks like a suite member but is none (`test:unt`), other than a known variant;
1840
+ * - a script named by a task id's hyphen spelling (`deploy-preview`) where the script spelling takes a colon
1841
+ * (`deploy:preview`): `holocron run` looks the script up by the script spelling, so the task would find none and be
1842
+ * skipped as "enforced in CI" (#1929);
1840
1843
  * - an old dotted task name, as a `warn` while those are accepted.
1841
1844
  */
1842
1845
  function checkPackageScripts(scripts, role) {
@@ -1854,6 +1857,7 @@ function checkPackageScripts(scripts, role) {
1854
1857
  if (RESERVED_SCRIPT_NAMES.has(script) && !(role === "root" && script === "prepare")) fail(`"${script}" is a name npm and pnpm give a meaning of their own, so no script may carry it`);
1855
1858
  else if (role === "package" && SUITES.includes(script)) fail(`"${script}" is a suite, a turbo task with no script: use a leaf (${suiteMembers(script).join(", ")})`);
1856
1859
  else if (role === "package" && isLeaf && callsTheTaskMachinery(command)) fail(`"${script}" must hold the real tool command, not a call to \`${command.trim().split(/\s+/)[0]} run\``);
1860
+ else if (isLeaf && scriptName(script) !== script) fail(`"${script}" is a task id: a script for it is named "${scriptName(script)}", which is what \`holocron run\` looks up`);
1857
1861
  else if (LEGACY_NAMES[script]) {
1858
1862
  const ids = LEGACY_NAMES[script].map((target) => target.id).join(", ");
1859
1863
  problems.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.372",
3
+ "version": "5.0.0-alpha.374",
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",
@@ -55,10 +55,10 @@
55
55
  "@commitlint/lint": "^21.2.3",
56
56
  "@commitlint/load": "^21.2.3",
57
57
  "@commitlint/types": "^21.2.3",
58
- "@theholocron/datapad": "5.0.0-alpha.372",
59
58
  "@theholocron/fs-utils": "^1.17.0-alpha.2",
60
- "@theholocron/json-utils": "^1.17.0-alpha.2",
59
+ "@theholocron/datapad": "5.0.0-alpha.374",
61
60
  "@theholocron/pkg-utils": "^1.17.0-alpha.2",
61
+ "@theholocron/json-utils": "^1.17.0-alpha.2",
62
62
  "@theholocron/misc-utils": "^1.17.0-alpha.2"
63
63
  },
64
64
  "devDependencies": {
@@ -77,9 +77,9 @@
77
77
  "@theholocron/commitlint-config": "^8.9.0-alpha.12",
78
78
  "@theholocron/eslint-config": "^8.9.0-alpha.12",
79
79
  "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.12",
80
- "@theholocron/tsconfig": "^8.9.0-alpha.12",
81
80
  "@theholocron/vitest-config": "^8.9.0-alpha.12",
82
- "@theholocron/tsdown-config": "^8.9.0-alpha.12"
81
+ "@theholocron/tsdown-config": "^8.9.0-alpha.12",
82
+ "@theholocron/tsconfig": "^8.9.0-alpha.12"
83
83
  },
84
84
  "engines": {
85
85
  "node": ">=22"