@theholocron/astromech 5.0.0-alpha.372 → 5.0.0-alpha.373
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 +3 -0
- package/dist/index.mjs +4 -0
- package/package.json +6 -6
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.
|
|
3
|
+
"version": "5.0.0-alpha.373",
|
|
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,11 +55,11 @@
|
|
|
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.
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.373",
|
|
59
59
|
"@theholocron/fs-utils": "^1.17.0-alpha.2",
|
|
60
|
-
"@theholocron/json-utils": "^1.17.0-alpha.2",
|
|
61
60
|
"@theholocron/pkg-utils": "^1.17.0-alpha.2",
|
|
62
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.2"
|
|
61
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.2",
|
|
62
|
+
"@theholocron/json-utils": "^1.17.0-alpha.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@commitlint/config-conventional": "^21.2.3",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"@theholocron/eslint-config": "^8.9.0-alpha.12",
|
|
79
79
|
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.12",
|
|
80
80
|
"@theholocron/tsconfig": "^8.9.0-alpha.12",
|
|
81
|
-
"@theholocron/
|
|
82
|
-
"@theholocron/
|
|
81
|
+
"@theholocron/tsdown-config": "^8.9.0-alpha.12",
|
|
82
|
+
"@theholocron/vitest-config": "^8.9.0-alpha.12"
|
|
83
83
|
},
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=22"
|