@theholocron/cli 5.0.0-alpha.413 → 5.0.0-alpha.414
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/cli.mjs +2 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/presets.d.mts +3 -3
- package/dist/presets.mjs +4 -4
- package/package.json +11 -11
package/dist/cli.mjs
CHANGED
|
@@ -4912,7 +4912,8 @@ function callerProblems(callers) {
|
|
|
4912
4912
|
const base = file.replace(/\.yml$/, "");
|
|
4913
4913
|
const prefix = base.startsWith(PREFIX$1) ? PREFIX$1 : "";
|
|
4914
4914
|
const stem = base.slice(prefix.length);
|
|
4915
|
-
|
|
4915
|
+
const oldFiles = Object.hasOwn(LEGACY_NAMES, stem) ? workflowKeys(stem).map((id) => `${prefix}${workflowFile(id)}`) : [];
|
|
4916
|
+
if (oldFiles.length > 0 && !(oldFiles.length === 1 && oldFiles[0] === file)) return [`${file}: an old caller name; the flat name is ${oldFiles.join(", ")}`];
|
|
4916
4917
|
const id = CALLER_IDS.find((candidate) => workflowFile(candidate).replace(/\.yml$/, "") === stem);
|
|
4917
4918
|
if (id === void 0) return [];
|
|
4918
4919
|
const problems = [];
|