This commit is contained in:
Ruben Fiszel
2024-05-16 20:34:15 +02:00
parent f3b8e01981
commit 27d5cd00a3
3 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -107,13 +107,13 @@ async function addCodebaseDigestIfRelevant(
if (!isTs) {
return content;
}
log.info(`isScript: ${isScript}, isTs: ${isTs}; ${path}`);
if (isTs) {
const c = findCodebase(path, codebases);
if (c) {
const parsed: any = yamlParse(content);
if (parsed && typeof parsed == "object") {
parsed["codebase"] = c.digest;
parsed["lock"] = undefined;
return yamlStringify(parsed, yamlOptions);
} else {
throw Error(