@theholocron/astromech 5.0.0-alpha.549 → 5.0.0-alpha.550
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.
|
@@ -87,13 +87,30 @@ function packageOf(file, readPackage) {
|
|
|
87
87
|
* text has no marker.
|
|
88
88
|
*/
|
|
89
89
|
function parseSkipDocs(text) {
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
90
|
+
const lastClosing = text.lastIndexOf("]");
|
|
91
|
+
const marker = /\[skip docs/gi;
|
|
92
|
+
for (let found = marker.exec(text); found; found = marker.exec(text)) {
|
|
93
|
+
const after = found.index + found[0].length;
|
|
94
|
+
let close = -1;
|
|
95
|
+
let names;
|
|
96
|
+
if (text[after] === "]") close = after;
|
|
97
|
+
else if (text[after] === ":") {
|
|
98
|
+
close = text.indexOf("]", after + 1);
|
|
99
|
+
if (close !== -1) names = text.slice(after + 1, close);
|
|
100
|
+
}
|
|
101
|
+
if (close === -1) {
|
|
102
|
+
if (lastClosing < after) return null;
|
|
103
|
+
marker.lastIndex = found.index + 1;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
const lineEnd = text.indexOf("\n", close + 1);
|
|
107
|
+
const reason = text.slice(close + 1, lineEnd === -1 ? text.length : lineEnd).trim();
|
|
108
|
+
return {
|
|
109
|
+
scope: names?.trim() ? names.split(",").map((name) => name.trim()).filter(Boolean) : null,
|
|
110
|
+
reason
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
97
114
|
}
|
|
98
115
|
// src/repo-validation/specs/assign-spec-ids/assign-spec-ids.ts
|
|
99
116
|
/** `SPEC-` and four digits: the id a spec carries in its front matter. */
|
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.550",
|
|
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.
|
|
59
|
-
"@theholocron/fs-utils": "^1.17.0-alpha.
|
|
60
|
-
"@theholocron/json-utils": "^1.17.0-alpha.
|
|
61
|
-
"@theholocron/misc-utils": "^1.17.0-alpha.
|
|
62
|
-
"@theholocron/pkg-utils": "^1.17.0-alpha.
|
|
58
|
+
"@theholocron/datapad": "5.0.0-alpha.550",
|
|
59
|
+
"@theholocron/fs-utils": "^1.17.0-alpha.8",
|
|
60
|
+
"@theholocron/json-utils": "^1.17.0-alpha.8",
|
|
61
|
+
"@theholocron/misc-utils": "^1.17.0-alpha.8",
|
|
62
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.8"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@commitlint/config-conventional": "^21.2.3",
|